Convert POTM Files to POTX in Python

Save a macro-enabled PowerPoint template as a macro-free POTX template with Aspose.Slides for Python via Java.

Convert POTM to POTX using Python

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

Python code for converting POTM to POTX

presentation = Presentation("presentation.potm")
try:
    presentation.save("presentation.potx", SaveFormat.Potx)
finally:
    presentation.dispose()

Convert POTM to POTX in Python

Aspose.Slides for Python via Java can load a macro-enabled POTM file and save it as a POTX template. The output retains the reusable presentation design in the Open XML template format; VBA macros are not retained. Microsoft PowerPoint is not required.

How to convert POTM to POTX in Python

Follow these steps to save a POTM file as a POTX template.

  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.Potx to create the POTX template.