Convert POTM Files to PPSX in Python

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

Convert POTM to PPSX in Python

Aspose.Slides for Python via Java can load a macro-enabled POTM file 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 POTM to PPSX using Python

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

Python code for converting POTM to PPSX

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

How to convert POTM to PPSX in Python

Follow these steps to save a POTM file 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 POTM file with Presentation.

  4. Call save with SaveFormat.Ppsx to create the PPSX slide show.