Convert PPTM Files to PPSM in Python

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

Convert PPTM to PPSM in Python

Aspose.Slides for Python via Java can load a macro-enabled PPTM presentation 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 normally opens directly in Slide Show view. Microsoft PowerPoint is not required.

Convert PPTM to PPSM using Python

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

Python code for converting PPTM to PPSM

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

How to convert PPTM to PPSM in Python

Follow these steps to save a PPTM presentation 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 PPTM file with Presentation.

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