Convert ODP Presentations to PDF in Python

Export an ODP presentation as a fixed-layout PDF document with Aspose.Slides for Python via Java.

Convert ODP to PDF in Python

Aspose.Slides for Python via Java can load an ODP presentation and export it as a PDF document. The PDF output retains the presentation’s visual layout in a format suitable for sharing, printing, and archiving. The conversion does not require Microsoft PowerPoint, LibreOffice, or OpenOffice.

Convert ODP to PDF using Python

Create a Presentation from the ODP file and call save with SaveFormat.Pdf to generate the PDF document.

Python code for converting ODP to PDF

presentation = Presentation("presentation.odp")
try:
    presentation.save("presentation.pdf", SaveFormat.Pdf)
finally:
    presentation.dispose()

How to convert ODP to PDF in Python

Follow these steps to export an ODP presentation as a PDF document.

  1. Install Aspose.Slides for Python via Java .

  2. Configure the package and start the Java Virtual Machine in your application.

  3. Open the source ODP file with Presentation.

  4. Call save with SaveFormat.Pdf to write the PDF document.