Convert ODP Presentations to PPTM in Python

Save an ODP presentation in the macro-enabled PowerPoint format with Aspose.Slides for Python via Java.

Convert ODP to PPTM in Python

Aspose.Slides for Python via Java can load an ODP presentation and save it as a PPTM file. PPTM is the macro-enabled Office Open XML presentation format; converting an ODP file does not add VBA macros to it. The conversion does not require Microsoft PowerPoint, LibreOffice, or OpenOffice.

Convert ODP to PPTM using Python

Create a Presentation from the ODP file and call save with SaveFormat.Pptm to create the PPTM file.

Python code for converting ODP to PPTM

presentation = Presentation("presentation.odp")
try:
    presentation.save("presentation.pptm", SaveFormat.Pptm)
finally:
    presentation.dispose()

How to convert ODP to PPTM in Python

Follow these steps to convert an OpenDocument presentation to the macro-enabled PowerPoint PPTM 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 ODP file with Presentation.

  4. Call save with SaveFormat.Pptm to write the PPTM file.