# Convert POT to PPTM in Python

> Convert POT files to macro-enabled PowerPoint PPTM presentations in Python with Aspose.Slides for Python via Java.

Source: https://products.aspose.com/slides/python-java/conversion/pot-to-pptm/
Updated: 2026-07-21



## Convert POT to PPTM in Python

[**Aspose.Slides for Python via Java**](/slides/python-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

```python
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.

Install [**Aspose.Slides for Python via Java**](https://docs.aspose.com/slides/python-java/installation/).

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

Open the source POT file with `Presentation`.

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

## Convert POT to Other Supported Formats
