Convert PPSM to PPSX in Python
Save a macro-enabled PowerPoint slide show in the macro-free Open XML PPSX format.
Convert PPSM to PPSX 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 PPSX format without Microsoft PowerPoint. The output remains a slide show file, but PPSX cannot store VBA projects, so macros from the source file are not included.
The conversion retains presentation content such as slides, layouts, themes, and supported multimedia. Load the source file with Presentation, then call save with SaveFormat.Ppsx.
How to Convert PPSM to PPSX in Python
Load the source PPSM file into a Presentation, then save it with SaveFormat.Ppsx.
Python code for converting PPSM to PPSX
presentation = Presentation("presentation.ppsm")
try:
presentation.save("presentation.ppsx", SaveFormat.Ppsx)
finally:
presentation.dispose()
Steps to Convert PPSM to PPSX in Python
The conversion loads the macro-enabled PowerPoint slide show and writes its content in the macro-free Open XML PPSX format.
Install Aspose.Slides for Python via Java .
Configure JPype and make the Aspose.Slides package available to your Python project.
Create a
Presentationfrom the source.ppsmfile.Call
savewithSaveFormat.Ppsxand a.ppsxoutput path.
Convert PPSM to Other Supported Formats
You can also convert PPSM presentations to other supported file formats.