Convert PPT to PDF in Python
Export a legacy PowerPoint presentation as a portable PDF document with Aspose.Slides for Python via Java.
Convert PPT to PDF using Python
Create a Presentation from the source PPT file, then call save with SaveFormat.Pdf.
Python code for converting PPT to PDF
presentation = Presentation("presentation.ppt")
try:
presentation.save("presentation.pdf", SaveFormat.Pdf)
finally:
presentation.dispose()Convert PPT to PDF in Python
Aspose.Slides for Python via Java
can convert a legacy PowerPoint presentation (.ppt) to a PDF document without Microsoft PowerPoint. PDF output is convenient for sharing, printing, and archiving because it preserves the rendered appearance of the slides across devices.
For a standard conversion, load the PPT file with Presentation and call save with SaveFormat.Pdf. You can also supply PdfOptions when the output requires settings such as compliance, image quality, or hidden-slide handling.
How to convert PPT to PDF in Python
Follow these steps to export a PowerPoint PPT presentation as a PDF document.
- Install Aspose.Slides for Python via Java.
- Configure the package and start the Java Virtual Machine in your application.
- Open the source PPT file with
Presentation. - Call
savewithSaveFormat.Pdfand a.pdfoutput path.
Convert PPT to Other Supported Formats
You can also convert PPT presentations to other supported file formats.