Convert PPTM Files to PPSX in Python

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

Convert PPTM to PPSX in Python

Aspose.Slides for Python via Java can load a macro-enabled PPTM presentation and save it as a PPSX slide show. PPSX is the macro-free Open XML PowerPoint Show format, so VBA macros from the source file are not retained. Microsoft PowerPoint is not required.

Convert PPTM to PPSX using Python

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

Python code for converting PPTM to PPSX

presentation = Presentation("presentation.pptm")
try:
    presentation.save("presentation.ppsx", SaveFormat.Ppsx)
finally:
    presentation.dispose()

How to convert PPTM to PPSX in Python

Follow these steps to save a PPTM presentation as a PPSX 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.Ppsx to create the PPSX slide show.