Convert PPTX to PPT in Python

Save an Open XML presentation in the legacy PowerPoint 97-2003 format with Aspose.Slides for Python via Java.

Convert PPTX to PPT in Python

Aspose.Slides for Python via Java can load an Open XML PowerPoint presentation (PPTX) and save it in the legacy PowerPoint 97-2003 presentation format (PPT). The conversion preserves supported content and layout, but features unavailable in the older format may be simplified. Microsoft PowerPoint is not required.

Convert PPTX to PPT using Python

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

Python code for converting PPTX to PPT

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

How to convert PPTX to PPT in Python

Follow these steps to convert an Open XML PowerPoint presentation to the legacy PPT format.

  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 PPTX file with Presentation.

  4. Call save with SaveFormat.Ppt to create the PPT presentation.