Convert POTM Files to PPSM in Python

Save a macro-enabled POTM file as a macro-enabled PowerPoint slide show with Aspose.Slides for Python via Java.

Convert POTM to PPSM in Python

Aspose.Slides for Python via Java can load a macro-enabled POTM file and save it as a PPSM slide show. PPSM is the Open XML macro-enabled PowerPoint Show format, so the output can retain supported VBA macros and open directly in Slide Show view. Microsoft PowerPoint is not required.

Convert POTM to PPSM using Python

Create a Presentation from the POTM file, then call save with SaveFormat.Ppsm.

Python code for converting POTM to PPSM

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

How to convert POTM to PPSM in Python

Follow these steps to save a POTM file as a PPSM slide show.

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

  4. Call save with SaveFormat.Ppsm to create the PPSM slide show.