Convert POTM Files to PPTM in Python
Save a macro-enabled POTM file as a macro-enabled PowerPoint presentation with Aspose.Slides for Python via Java.
Convert POTM to PPTM using Python
Create a Presentation from the POTM file, then call save with SaveFormat.Pptm.
Python code for converting POTM to PPTM
presentation = Presentation("presentation.potm")
try:
presentation.save("presentation.pptm", SaveFormat.Pptm)
finally:
presentation.dispose()Convert POTM to PPTM in Python
Aspose.Slides for Python via Java can load a macro-enabled POTM file and save it as a PPTM presentation. PPTM is the Open XML macro-enabled PowerPoint presentation format, so the output can retain supported VBA macros while behaving as a regular editable presentation. Microsoft PowerPoint is not required.
How to convert POTM to PPTM in Python
Follow these steps to save a POTM file as a PPTM 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.Pptmto create the PPTM presentation.
Convert POTM to Other Supported Formats
You can also convert POTM files to other supported file formats.