Package com.aspose.slides

Examples of com.aspose.slides.Presentation.save()


   
      //Add the title slide
      ISlide slide = pres.getSlides().addEmptySlide(pres.getLayoutSlides().get_Item(0));
   
    //Save the presentation
    pres.save("data/EditedPPT_Aspose.ppt", SaveFormat.Ppt);
   
    System.out.println("Presentation Edited and Saved.");
  }
}
View Full Code Here


      //Set the sub title text
      ((IAutoShape)slide.getShapes().get_Item(1)).getTextFrame().setText("Slide Title Sub-Heading");

      //Write output to disk
      pres.save("data/Aspose_SlideTitle.pptx",SaveFormat.Pptx);
  }
}
View Full Code Here

    //Apply zoom type transition on slide 3
    pres.getSlides().get_Item(2).getSlideShowTransition().setType(TransitionType.Zoom);

    //Write the presentation to disk
    pres.save("data/AsposeTransition.pptx",SaveFormat.Pptx);
   
    System.out.println("First Transition File is saved.");
   
    //==============================================================
   
View Full Code Here

    IComment[] Comments = slide.getSlideComments(author);
   
    // Accessing the comment at index 0 for slide 1
    String str = Comments[0].getText();
   
    pres.save("data/AsposeComments.pptx", SaveFormat.Pptx);
   
    if (Comments.length > 0)
    {
      // Select comments collection of Author at index 0
      ICommentCollection commentCollection = Comments[0].getAuthor().getComments();
View Full Code Here

    //Add image to presentation's images collection

    pres.getSlides().get_Item(0).getBackground().getFillFormat().getPictureFillFormat().getPicture().setImage (imgx);

    //Write the presentation to disk
    pres.save("data/AsposeBG.pptx",SaveFormat.Pptx);
  }
}
View Full Code Here

    //Instantiate a Presentation object that represents a PPT file
    Presentation pres = new Presentation("data/presentation.ppt");
   
    //Saving the presentation to PDF document
    pres.save("data/AsposeConvert.pdf", SaveFormat.Pdf);
   
    //Display result of conversion.
    System.out.println("Conversion to PDF performed successfully with default options!");
       
        // 2. Conversion to PDF using custom options.
View Full Code Here

    //Set Play Mode and Volume of the Audio
    af.setPlayMode(AudioPlayModePreset.Auto);
    af.setVolume(AudioVolumeMode.Loud);
   
    //Write the PPTX file to disk
    pres.save("data/AsposeAudio.pptx", SaveFormat.Pptx);
   
    System.out.println("Audio Control Added.");
  }
}
View Full Code Here

        //Define the PDF standard
        opts.setCompliance(com.aspose.slides.PdfCompliance.Pdf15);

        //Save the presentation to PDF with specified options
        pres.save("data/AsposeConvert2.pdf", SaveFormat.Pdf,opts);

        //Display result of conversion.
        System.out.println("Conversion to PDF performed successfully with custom options!");
  }
}
View Full Code Here

    //Set the transition time of 7 seconds
    presentation.getSlides().get_Item(2).getSlideShowTransition().setAdvanceOnClick( true);
    presentation.getSlides().get_Item(2).getSlideShowTransition().setAdvanceAfterTime (7000);

    //Write the presentation to disk
    presentation.save("data/AsposeTransition2.pptx",SaveFormat.Pptx);
   
    System.out.println("Second Transition File is saved.");
  }
}
View Full Code Here

      //Access the Media Player ActiveX control and set the video path
      newPptx.getSlides().get_Item(0).getControls().get_Item(0).getProperties().set_Item("URL", "C:\\Wildlife.wmv");

      //Save the Presentation
      newPptx.save("data/AsposeMediaPlayer.pptx", SaveFormat.Pptx);   
   
    System.out.println("Media Player Added.");
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.