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.
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.Odpand an.odpoutput path.
Convert PPTM to Other Supported Formats
You can also convert PPTM presentations to other supported file formats.