Convert PPT to POTX in Python

Save a legacy PowerPoint presentation as an Open XML POTX template with Aspose.Slides for Python via Java.

Convert PPT to POTX in Python

Aspose.Slides for Python via Java can load a legacy PowerPoint presentation (.ppt) and save it as an Open XML PowerPoint template (.potx) without Microsoft PowerPoint. The resulting POTX file can be used as the basis for new presentations.

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

Convert PPT to POTX using Python

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

Python code for converting PPT to POTX

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

How to convert PPT to POTX in Python

Follow these steps to save a PowerPoint PPT presentation as an Open XML POTX template.

  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.Potx and a .potx output path.