Convert POTM Files to ODP in Python

Export a macro-enabled PowerPoint template as an OpenDocument Presentation with Aspose.Slides for Python via Java.

Convert POTM to ODP in Python

Aspose.Slides for Python via Java can load a macro-enabled POTM file and export it as an OpenDocument Presentation (ODP). The conversion preserves the presentation content in an open format; macros are not retained in ODP. Microsoft PowerPoint, LibreOffice, and OpenOffice are not required.

Convert POTM to ODP using Python

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

Python code for converting POTM to ODP

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

How to convert POTM to ODP in Python

Follow these steps to export a POTM file as an OpenDocument Presentation.

  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.Odp to create the ODP file.