Convert PPTX Presentations to POTM in Python

Save a PPTX presentation in the macro-enabled POTM format with Aspose.Slides for Python via Java.

Convert PPTX to POTM in Python

Aspose.Slides for Python via Java can load a PPTX presentation and save it in the macro-enabled POTM format based on Office Open XML. The conversion does not require Microsoft PowerPoint.

Convert PPTX to POTM using Python

Create a Presentation from the PPTX file and call save with SaveFormat.Potm to create the POTM file.

Python code for converting PPTX to POTM

presentation = Presentation("presentation.pptx")
try:
    presentation.save("presentation.potm", SaveFormat.Potm)
finally:
    presentation.dispose()

How to convert PPTX to POTM in Python

Follow these steps to save a PPTX presentation in the macro-enabled POTM format.

  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 PPTX file with Presentation.

  4. Call save with SaveFormat.Potm to write the POTM file.