Convert PPT to POTM in Python

Save a legacy PowerPoint presentation in the macro-enabled Open XML POTM format with Aspose.Slides for Python via Java.

Convert PPT to POTM using Python

Create a Presentation from the source PPT file, then call save with SaveFormat.Potm.

Python code for converting PPT to POTM

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

Convert PPT to POTM in Python

Aspose.Slides for Python via Java can load a legacy PowerPoint presentation (.ppt) and save it in the macro-enabled Open XML POTM format without Microsoft PowerPoint. POTM files can store VBA macros; converting a source file does not create new macros.

Load the source file with Presentation, then call save with SaveFormat.Potm.

How to convert PPT to POTM in Python

Follow these steps to save a PowerPoint PPT presentation in the macro-enabled Open XML 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 PPT file with Presentation.
  4. Call save with SaveFormat.Potm and a .potm output path.

Convert PPT to Other Supported Formats

You can also convert PPT presentations to other supported file formats.