Package com.aspose.slides

Examples of com.aspose.slides.ISlideCollection


  {
    //Instantiate Presentation class that represents a PPTX file
    Presentation pres = new Presentation("data/presentation.pptx");
   
    //Clone the desired slide to the end of the collection of slides in the same PPTX
    ISlideCollection slds = pres.getSlides();
    slds.addClone(pres.getSlides().get_Item(0));

//Write the modified pptx to disk
pres.save("data/AsposeClone.pptx", SaveFormat.Pptx);

        //Printing the status
View Full Code Here


  {
    //Instantiate Presentation class that represents a presentation file
    Presentation pres = new Presentation("data/presentation.pptx");

    //Clone the desired slide to the end of the collection of slides in the same presentation
    ISlideCollection slds = pres.getSlides();

    //Clone the desired slide to the specified index in the same presentation
    slds.insertClone(2, pres.getSlides().get_Item(1));

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

  {
    //Instantiate Presentation class that represents the presentation file
    Presentation pres = new Presentation();

    //Instantiate SlideCollection calss
    ISlideCollection slds = pres.getSlides();

    for (int i = 0; i < pres.getLayoutSlides().size(); i++)
    {
        //Add an empty slide to the Slides collection
        slds.addEmptySlide(pres.getLayoutSlides().get_Item(i));

    }
    //Do some work on the newly added slide

    //Save the PPTX file to the Disk
View Full Code Here

TOP

Related Classes of com.aspose.slides.ISlideCollection

Copyright © 2018 www.massapicom. 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.