Convert POT Files to POTM in Python
Export a binary PowerPoint template as a macro-enabled Open XML template with Aspose.Slides for Python via Java.
Convert POT to POTM using Python
Create a Presentation from the POT file, then call save with SaveFormat.Potm.
Python code for converting POT to POTM
presentation = Presentation("presentation.pot")
try:
presentation.save("presentation.potm", SaveFormat.Potm)
finally:
presentation.dispose()Convert POT to POTM in Python
Aspose.Slides for Python via Java can load a binary PowerPoint template (POT) and export it as a macro-enabled Open XML template (POTM). The POTM format can store VBA macros, but converting a macro-free POT file does not add macros. Microsoft PowerPoint is not required.
How to convert POT to POTM in Python
Follow these steps to export a POT file as a macro-enabled PowerPoint template.
- Install Aspose.Slides for Python via Java.
- Configure the package and start the Java Virtual Machine in your application.
- Open the source POT file with
Presentation. - Call
savewithSaveFormat.Potmto create the POTM file.
Convert POT to Other Supported Formats
You can also convert POT files to other supported file formats.