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 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()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.
How to convert PPTX to PPSM in Python
Follow these steps to convert a PowerPoint presentation to a macro-enabled PPSM slide show.
- Install Aspose.Slides for Python via Java.
- Configure the package and start the Java Virtual Machine in your application.
- Open the source PPTX file with
Presentation. - Call
savewithSaveFormat.Ppsmto create the PPSM slide show.
Convert PPTX to Other Supported Formats
You can also convert PPTX presentations to other supported file formats.