Import Presentation
Contents
[
Hide
]
Aspose.Slides for Java allows you to import presentations from PDFs. Essentially, you get to convert a PDF to a PowerPoint presentation.
Go through these steps:
- Instantiate an object of the presentation class.
- Call the addFromPdf() method and pass the PDF file.
- 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();
}