Convert PPT to POTM in Python
Save a legacy PowerPoint presentation in the macro-enabled Open XML POTM format with Aspose.Slides for Python via Java.
Convert PPT to POTM in Python
Aspose.Slides for Python via Java
can load a legacy PowerPoint presentation (.ppt) and save it in the macro-enabled Open XML POTM format without Microsoft PowerPoint. POTM files can store VBA macros; converting a source file does not create new macros.
Load the source file with Presentation, then call save with SaveFormat.Potm.
Convert PPT to POTM using Python
Create a Presentation from the source PPT file, then call save with SaveFormat.Potm.
Python code for converting PPT to POTM
presentation = Presentation("presentation.ppt")
try:
presentation.save("presentation.potm", SaveFormat.Potm)
finally:
presentation.dispose()
How to convert PPT to POTM in Python
Follow these steps to save a PowerPoint PPT presentation in the macro-enabled Open XML POTM format.
Install Aspose.Slides for Python via Java .
Configure the package and start the Java Virtual Machine in your application.
Open the source PPT file with
Presentation.Call
savewithSaveFormat.Potmand a.potmoutput path.
Convert PPT to Other Supported Formats
You can also convert PPT presentations to other supported file formats.