Convert POTM Files to ODP in Python
Export a macro-enabled PowerPoint template as an OpenDocument Presentation with Aspose.Slides for Python via Java.
Convert POTM to ODP using Python
Create a Presentation from the POTM file, then call save with SaveFormat.Odp.
Python code for converting POTM to ODP
presentation = Presentation("presentation.potm")
try:
presentation.save("presentation.odp", SaveFormat.Odp)
finally:
presentation.dispose()Convert POTM to ODP in Python
Aspose.Slides for Python via Java can load a macro-enabled POTM file and export it as an OpenDocument Presentation (ODP). The conversion preserves the presentation content in an open format; macros are not retained in ODP. Microsoft PowerPoint, LibreOffice, and OpenOffice are not required.
How to convert POTM to ODP in Python
Follow these steps to export a POTM file as an OpenDocument Presentation.
- Install Aspose.Slides for Python via Java.
- Configure the package and start the Java Virtual Machine in your application.
- Open the source POTM file with
Presentation. - Call
savewithSaveFormat.Odpto create the ODP file.
Convert POTM to Other Supported Formats
You can also convert POTM files to other supported file formats.