Convert POTX Files to PPT in Python

Transform a PowerPoint Open XML template into a legacy binary PPT presentation with Aspose.Slides for Python via Java.

Convert POTX to PPT in Python

Aspose.Slides for Python via Java can load a PowerPoint Open XML template (POTX) and save it as an editable presentation in the legacy binary PowerPoint format (PPT). The conversion changes the document type while retaining the slide content and design. Microsoft PowerPoint is not required.

Convert POTX to PPT using Python

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

Python code for converting POTX to PPT

presentation = Presentation("presentation.potx")
try:
    presentation.save("presentation.ppt", SaveFormat.Ppt)
finally:
    presentation.dispose()

How to convert POTX to PPT in Python

Follow these steps to convert a POTX file to a legacy PPT presentation.

  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.Ppt to create the PPT presentation.