Convert PDF to PPSX in Python
Import PDF pages and save them in the PowerPoint Open XML Show format with Aspose.Slides for Python via Java.
Convert PDF to PPSX in Python
Aspose.Slides for Python via Java can import PDF pages as slides and save the resulting presentation as a PPSX file. PPSX is the PowerPoint Open XML Show format and is intended to open directly in slide show mode in compatible applications. The conversion does not require Microsoft PowerPoint or a PDF viewer.
Convert PDF to PPSX using Python
Create an empty Presentation, remove its default slide, and call addFromPdf to import the PDF pages. Then call save with SaveFormat.Ppsx to create the PPSX slide show.
Python code for converting PDF to PPSX
presentation = Presentation()
try:
presentation.getSlides().removeAt(0)
presentation.getSlides().addFromPdf("document.pdf")
presentation.save("presentation.ppsx", SaveFormat.Ppsx)
finally:
presentation.dispose()
How to convert PDF to PPSX in Python
Follow these steps to import a PDF document and save its pages as a PowerPoint PPSX slide show.
Install Aspose.Slides for Python via Java .
Configure the package and start the Java Virtual Machine in your application.
Import the PDF pages by calling
addFromPdfon the presentation’s slide collection.Call
savewithSaveFormat.Ppsxto create the PPSX slide show.
Convert PDF to Other Supported Formats
You can also convert PDF documents to other supported file formats.