Convert PPT to PPTM in Python
Save a legacy PowerPoint presentation in the macro-enabled Open XML PPTM format with Aspose.Slides for Python via Java.
Convert PPT to PPTM in Python
Aspose.Slides for Python via Java
can load a legacy PowerPoint presentation (.ppt) and save it in the macro-enabled Open XML PPTM format without Microsoft PowerPoint. PPTM 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.Pptm.
Convert PPT to PPTM using Python
Create a Presentation from the source PPT file, then call save with SaveFormat.Pptm.
Python code for converting PPT to PPTM
presentation = Presentation("presentation.ppt")
try:
presentation.save("presentation.pptm", SaveFormat.Pptm)
finally:
presentation.dispose()
How to convert PPT to PPTM in Python
Follow these steps to save a PowerPoint PPT presentation in the macro-enabled Open XML PPTM 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.Pptmand a.pptmoutput path.
Convert PPT to Other Supported Formats
You can also convert PPT presentations to other supported file formats.