Convert PPTM Files to PPTX in Python

Save a macro-enabled PPTM presentation as a macro-free PPTX file with Aspose.Slides for Python via Java.

Convert PPTM to PPTX in Python

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

Convert PPTM to PPTX using Python

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

Python code for converting PPTM to PPTX

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

How to convert PPTM to PPTX in Python

Follow these steps to save a PPTM presentation as a PPTX file.

  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.Pptx to create the PPTX presentation.