Convert PPTM to ODP in Python

Save a macro-enabled PowerPoint presentation in OpenDocument Presentation format with Aspose.Slides for Python via Java.

Convert PPTM to ODP in Python

Aspose.Slides for Python via Java can load a macro-enabled PowerPoint presentation (.pptm) and save it in OpenDocument Presentation (.odp) format. The conversion preserves supported slide content, layouts, and formatting without requiring Microsoft PowerPoint. The ODP output does not retain the PPTM file’s VBA project.

Convert PPTM to ODP using Python

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

Python code for converting PPTM to ODP

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

How to convert PPTM to ODP in Python

Follow these steps to save a PowerPoint PPTM presentation in OpenDocument Presentation 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 PPTM file with Presentation.

  4. Call save with SaveFormat.Odp and an .odp output path.