Convert POTX Files to PDF in Python

Render a PowerPoint Open XML template as a fixed-layout PDF document with Aspose.Slides for Python via Java.

Convert POTX to PDF in Python

Aspose.Slides for Python via Java can load a PowerPoint Open XML template (POTX) and render its slides as a fixed-layout PDF document. The resulting file preserves the visual appearance of the slides and does not require Microsoft PowerPoint.

Convert POTX to PDF using Python

Create a Presentation from the POTX file, then call save with SaveFormat.Pdf.

Python code for converting POTX to PDF

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

How to convert POTX to PDF in Python

Follow these steps to render a POTX file 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 POTX file with Presentation.

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