Convert POTM Templates to PPTX in Python

Transform a macro-enabled POTM presentation template into an editable PPTX file with Aspose.Slides for Python via Java.

Convert POTM to PPTX in Python

Aspose.Slides for Python via Java can load a macro-enabled PowerPoint template (POTM) and save it as an editable, macro-free PPTX file while preserving its slides and content. The conversion does not require Microsoft PowerPoint.

Convert POTM to PPTX using Python

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

Python code for converting POTM to PPTX

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

How to convert POTM to PPTX in Python

Follow these steps to convert a macro-enabled PowerPoint presentation template to PPTX 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 POTM file with Presentation.

  4. Call save with SaveFormat.Pptx to write the PPTX file.