Convert POTM Files to PPT in Python

Save a macro-enabled POTM file as a legacy PowerPoint presentation with Aspose.Slides for Python via Java.

Convert POTM to PPT in Python

Aspose.Slides for Python via Java can load a macro-enabled POTM file and save it as a PPT presentation. PPT is the legacy binary PowerPoint format and is suitable when compatibility with older PowerPoint versions is required. To preserve VBA macros, save the file as PPTM instead. Microsoft PowerPoint is not required.

Convert POTM to PPT using Python

Create a Presentation from the POTM file, then call save with SaveFormat.Ppt.

Python code for converting POTM to PPT

presentation = Presentation("presentation.potm")
try:
    presentation.save("presentation.ppt", SaveFormat.Ppt)
finally:
    presentation.dispose()

How to convert POTM to PPT in Python

Follow these steps to save a POTM file as a PPT presentation.

  1. Install Aspose.Slides for Python via Java .

  2. Configure the package and start the Java Virtual Machine in your application.

  3. Open the source POTM file with Presentation.

  4. Call save with SaveFormat.Ppt to create the PPT presentation.