Convert PPTX Presentations to POTM in Python
Save a PPTX presentation in the macro-enabled POTM format with Aspose.Slides for Python via Java.
Convert PPTX to POTM in Python
Aspose.Slides for Python via Java can load a PPTX presentation and save it in the macro-enabled POTM format based on Office Open XML. The conversion does not require Microsoft PowerPoint.
Convert PPTX to POTM using Python
Create a Presentation from the PPTX file and call save with SaveFormat.Potm to create the POTM file.
Python code for converting PPTX to POTM
presentation = Presentation("presentation.pptx")
try:
presentation.save("presentation.potm", SaveFormat.Potm)
finally:
presentation.dispose()
How to convert PPTX to POTM in Python
Follow these steps to save a PPTX presentation in the macro-enabled POTM format.
Install Aspose.Slides for Python via Java .
Configure the package and start the Java Virtual Machine in your application.
Open the source PPTX file with
Presentation.Call
savewithSaveFormat.Potmto write the POTM file.
Convert PPTX to Other Supported Formats
You can also convert PPTX presentations to other supported file formats.