Convert ODP Presentations to POTM in Python
Save an ODP presentation in the macro-enabled PowerPoint POTM format with Aspose.Slides for Python via Java.
Convert ODP to POTM in Python
Aspose.Slides for Python via Java can load an ODP presentation and save it in the macro-enabled POTM presentation format. POTM supports VBA projects, but converting an ODP file does not add macros to the presentation. The conversion does not require Microsoft PowerPoint, LibreOffice, or OpenOffice.
Convert ODP to POTM using Python
Create a Presentation from the ODP file and call save with SaveFormat.Potm to create the POTM file.
Python code for converting ODP to POTM
presentation = Presentation("presentation.odp")
try:
presentation.save("presentation.potm", SaveFormat.Potm)
finally:
presentation.dispose()
How to convert ODP to POTM in Python
Follow these steps to save an ODP presentation in the macro-enabled POTM 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.Potmto write the POTM file.
Convert ODP to Other Supported Formats
You can also convert ODP presentations to other supported file formats.