Convert PPTM to FODP in Python

Save a macro-enabled PowerPoint presentation as a flat OpenDocument presentation with Aspose.Slides for Python via Java.

Convert PPTM to FODP using Python

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

Python code for converting PPTM to FODP

presentation = Presentation("presentation.pptm")
try:
    presentation.save("presentation.fodp", SaveFormat.Fodp)
finally:
    presentation.dispose()

Convert PPTM to FODP in Python

Aspose.Slides for Python via Java can load a macro-enabled PowerPoint presentation (.pptm) and save it as a flat OpenDocument presentation (.fodp). Unlike an ODP package, an FODP file stores the presentation in a single XML document. The FODP output does not retain the PPTM file’s VBA project, and the conversion does not require Microsoft PowerPoint.

How to convert PPTM to FODP in Python

Follow these steps to save a PowerPoint PPTM presentation as a single-file FODP document.

  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.Fodp and an .fodp output path.

Convert PPTM to Other Supported Formats

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