Convert PPSM to POTM in Python

Save a macro-enabled PowerPoint slide show in the macro-enabled Open XML POTM format.

Convert PPSM to POTM in Python

Aspose.Slides for Python via Java can load a macro-enabled PowerPoint slide show (.ppsm) and save it in the macro-enabled Open XML POTM format without Microsoft PowerPoint. Both formats can store VBA projects, while POTM identifies the output as a PowerPoint template file.

The conversion retains presentation content such as slides, layouts, themes, and supported multimedia. Load the source file with Presentation, then call save with SaveFormat.Potm.

How to Convert PPSM to POTM in Python

Load the source PPSM file into a Presentation, then save it with SaveFormat.Potm.

Python code for converting PPSM to POTM

presentation = Presentation("presentation.ppsm")
try:
    presentation.save("presentation.potm", SaveFormat.Potm)
finally:
    presentation.dispose()

Steps to Convert PPSM to POTM in Python

The conversion loads the macro-enabled PowerPoint slide show and writes its content in the macro-enabled Open XML POTM format.

  1. Install Aspose.Slides for Python via Java .

  2. Configure JPype and make the Aspose.Slides package available to your Python project.

  3. Create a Presentation from the source .ppsm file.

  4. Call save with SaveFormat.Potm and a .potm output path.