Convert PPSX Files to PDF in Python
Export a PowerPoint slide show as a portable PDF document with consistent slide rendering.
Convert PPSX to PDF in Python
Aspose.Slides for Python via Java
can convert a PowerPoint Slide Show (.ppsx) to a PDF document without Microsoft PowerPoint. PDF output is convenient for sharing, printing, and archiving because each slide is rendered as a fixed-layout page.
For a straightforward conversion, load the PPSX file with Presentation and call save with SaveFormat.Pdf. Animations, transitions, and other interactive slide show behavior do not remain interactive in the PDF.
How to Convert PPSX to PDF in Python
Load the source PPSX file into a Presentation, then save it with SaveFormat.Pdf.
Python code for converting PPSX to PDF
presentation = Presentation("presentation.ppsx")
try:
presentation.save("presentation.pdf", SaveFormat.Pdf)
finally:
presentation.dispose()
Steps to Convert PPSX to PDF in Python
The conversion loads the PowerPoint slide show and renders its slides as pages in a PDF document.
Install Aspose.Slides for Python via Java .
Configure JPype and make the Aspose.Slides package available to your Python project.
Create a
Presentationfrom the source.ppsxfile.Call
savewithSaveFormat.Pdfand a.pdfoutput path.
Convert PPSX to Other Supported Formats
You can also convert PPSX presentations to other supported file formats.