Convert PPT to PPTX in Python

Save a legacy PowerPoint presentation in the modern Open XML PPTX format with Aspose.Slides for Python via Java.

Convert PPT to PPTX in Python

Aspose.Slides for Python via Java can load a legacy PowerPoint presentation (.ppt) and save it in the Open XML PPTX format. PPTX files are widely supported by current presentation applications, and the conversion does not require Microsoft PowerPoint.

Load the source file with Presentation, then call save with SaveFormat.Pptx.

Convert PPT to PPTX using Python

Create a Presentation from the source PPT file, then call save with SaveFormat.Pptx.

Python code for converting PPT to PPTX

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

How to convert PPT to PPTX in Python

Follow these steps to save a legacy PowerPoint PPT presentation in the Open XML PPTX 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 PPT file with Presentation.

  4. Call save with SaveFormat.Pptx and a .pptx output path.