Convert POTM Files to PPTM in Python

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

Convert POTM to PPTM in Python

Aspose.Slides for Python via Java can load a macro-enabled POTM file and save it as a PPTM presentation. PPTM is the Open XML macro-enabled PowerPoint presentation format, so the output can retain supported VBA macros while behaving as a regular editable presentation. Microsoft PowerPoint is not required.

Convert POTM to PPTM using Python

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

Python code for converting POTM to PPTM

presentation = Presentation("presentation.potm")
try:
    presentation.save("presentation.pptm", SaveFormat.Pptm)
finally:
    presentation.dispose()

How to convert POTM to PPTM in Python

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

  4. Call save with SaveFormat.Pptm to create the PPTM presentation.