Convert PPSM to POTX in Python

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

Convert PPSM to POTX in Python

Aspose.Slides for Python via Java can load a macro-enabled PowerPoint slide show (.ppsm) and save it in the macro-free Open XML POTX format without Microsoft PowerPoint. POTX cannot store VBA projects, so macros from the source file are not included in the output.

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

How to Convert PPSM to POTX in Python

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

Python code for converting PPSM to POTX

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

Steps to Convert PPSM to POTX in Python

The conversion loads the macro-enabled PowerPoint slide show and writes its content in the macro-free Open XML POTX 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.Potx and a .potx output path.