Package slides.workingwithpresentation

Source Code of slides.workingwithpresentation.AsposeOpenandSave

package slides.workingwithpresentation;

import com.aspose.slides.ISlide;
import com.aspose.slides.Presentation;
import com.aspose.slides.SaveFormat;

public class AsposeOpenandSave
{
  public static void main(String[] args) throws Exception
  {
    //Instantiate a PresentationEx object that represents a PPTX file
    Presentation pres = new Presentation("data/presentation.ppt");
   
      //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.");
  }
}
TOP

Related Classes of slides.workingwithpresentation.AsposeOpenandSave

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.