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 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.
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()
How to convert PPTM to FODP in Python
Follow these steps to save a PowerPoint PPTM presentation as a single-file FODP document.
Install Aspose.Slides for Python via Java .
Configure the package and start the Java Virtual Machine in your application.
Open the source PPTM file with
Presentation.Call
savewithSaveFormat.Fodpand an.fodpoutput path.
Convert PPTM to Other Supported Formats
You can also convert PPTM presentations to other supported file formats.