Convert PPTX to PPSM in Python

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

Convert PPTX to PPSM in Python

Aspose.Slides for Python via Java can load a macro-free PowerPoint presentation (PPTX) and save it as a macro-enabled PowerPoint slide show (PPSM). The output opens in slide show mode in compatible applications. Selecting PPSM as the output format does not add macros to a presentation that has none. Microsoft PowerPoint is not required.

Convert PPTX to PPSM using Python

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

Python code for converting PPTX to PPSM

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

How to convert PPTX to PPSM in Python

Follow these steps to convert a PowerPoint presentation to a macro-enabled 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 PPTX file with Presentation.

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