Convert PPTM Files to PPT in Python

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

Convert PPTM to PPT in Python

Aspose.Slides for Python via Java can load a macro-enabled PPTM presentation 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. Microsoft PowerPoint is not required.

Convert PPTM to PPT using Python

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

Python code for converting PPTM to PPT

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

How to convert PPTM to PPT in Python

Follow these steps to save a PPTM 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 PPTM file with Presentation.

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