Import Presentation

Contents
[ ]

Aspose.Slides for Java allows you to import presentations from PDFs. Essentially, you get to convert a PDF to a PowerPoint presentation.

pdf-to-powerpoint

Go through these steps:

  1. Instantiate an object of the presentation class.
  2. Call the addFromPdf() method and pass the PDF file.
  3. Use the save() method to save the file in the PowerPoint format.

This Java code demonstrates the PDF to PowerPoint process:

Presentation pres = new Presentation();
try {
    pres.getSlides().addFromPdf("InputPDF.pdf");
    pres.save("OutputPresentation.pptx", SaveFormat.Pptx);
} finally {
    if (pres != null) pres.dispose();
}