Convert POT Files to PPTM in Python

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

Convert POT to PPTM in Python

Aspose.Slides for Python via Java can load a POT file and save it as a macro-enabled PowerPoint PPTM presentation. PPTM supports VBA projects, but converting a POT file does not add macros to the presentation. Microsoft PowerPoint is not required.

Convert POT to PPTM using Python

Create a Presentation from the POT file, then call save with SaveFormat.Pptm.

Python code for converting POT to PPTM

presentation = Presentation("presentation.pot")
try:
    presentation.save("presentation.pptm", SaveFormat.Pptm)
finally:
    presentation.dispose()

How to convert POT to PPTM in Python

Follow these steps to convert a POT file to a macro-enabled PowerPoint PPTM 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 POT file with Presentation.

  4. Call save with SaveFormat.Pptm to create the PPTM presentation.