Convert PPSM Slide Shows to PPTX in Python

Transform a macro-enabled PowerPoint slide show into an editable PPTX presentation with Aspose.Slides for Python via Java.

Convert PPSM to PPTX in Python

Aspose.Slides for Python via Java can load a macro-enabled PowerPoint PPSM slide show and save it as an editable PPTX presentation. Because PPTX is not a macro-enabled format, VBA projects in the source file are not retained in the output. The conversion does not require Microsoft PowerPoint.

Convert PPSM to PPTX using Python

Create a Presentation from the PPSM file and call save with SaveFormat.Pptx to create the PPTX file.

Python code for converting PPSM to PPTX

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

How to convert PPSM to PPTX in Python

Follow these steps to convert a macro-enabled PowerPoint slide show to an editable PPTX presentation.

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

  4. Call save with SaveFormat.Pptx to write the PPTX file.