Convert ODP Presentations to PPTM in Python
Save an ODP presentation in the macro-enabled PowerPoint format with Aspose.Slides for Python via Java.
Convert ODP to PPTM in Python
Aspose.Slides for Python via Java can load an ODP presentation and save it as a PPTM file. PPTM is the macro-enabled Office Open XML presentation format; converting an ODP file does not add VBA macros to it. The conversion does not require Microsoft PowerPoint, LibreOffice, or OpenOffice.
Convert ODP to PPTM using Python
Create a Presentation from the ODP file and call save with SaveFormat.Pptm to create the PPTM file.
Python code for converting ODP to PPTM
presentation = Presentation("presentation.odp")
try:
presentation.save("presentation.pptm", SaveFormat.Pptm)
finally:
presentation.dispose()
How to convert ODP to PPTM in Python
Follow these steps to convert an OpenDocument presentation to the macro-enabled PowerPoint PPTM format.
Install Aspose.Slides for Python via Java .
Configure the package and start the Java Virtual Machine in your application.
Open the source ODP file with
Presentation.Call
savewithSaveFormat.Pptmto write the PPTM file.
Convert ODP to Other Supported Formats
You can also convert ODP presentations to other supported file formats.