# Convert POTM to PPTX in Python

> Convert POTM presentation templates to editable PowerPoint PPTX files in Python with Aspose.Slides for Python via Java.

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



## Convert POTM to PPTX in Python

[**Aspose.Slides for Python via Java**](/slides/python-java/) can load a macro-enabled PowerPoint template (`POTM`) and save it as an editable, macro-free `PPTX` file while preserving its slides and content. The conversion does not require Microsoft PowerPoint.

## Convert POTM to PPTX using Python

Create a `Presentation` from the POTM file and call `save` with `SaveFormat.Pptx` to create the PPTX file.

### Python code for converting POTM to PPTX

```python
presentation = Presentation("presentation.potm")
try:
    presentation.save("presentation.pptx", SaveFormat.Pptx)
finally:
    presentation.dispose()
```

## How to convert POTM to PPTX in Python

Follow these steps to convert a macro-enabled PowerPoint presentation template to PPTX format.

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 POTM file with `Presentation`.

Call `save` with `SaveFormat.Pptx` to write the PPTX file.

## Convert POTM to Other Supported Formats

- [POTM TO PPT](/slides/python-java/conversion/potm-to-ppt/)
- [POTM TO PDF](/slides/python-java/conversion/potm-to-pdf/)
- [POTM TO HTML](/slides/python-java/conversion/potm-to-html/)
- [POTM TO PNG](/slides/python-java/conversion/potm-to-png/)
- [POTM TO BMP](/slides/python-java/conversion/potm-to-bmp/)
- [POTM TO JPG](/slides/python-java/conversion/potm-to-jpg/)
- [POTM TO FODP](/slides/python-java/conversion/potm-to-fodp/)
- [POTM TO GIF](/slides/python-java/conversion/potm-to-gif/)
- [POTM TO ODP](/slides/python-java/conversion/potm-to-odp/)
- [POTM TO OTP](/slides/python-java/conversion/potm-to-otp/)
- [POTM TO POT](/slides/python-java/conversion/potm-to-pot/)
- [POTM TO POTX](/slides/python-java/conversion/potm-to-potx/)
- [POTM TO PPS](/slides/python-java/conversion/potm-to-pps/)
- [POTM TO PPSM](/slides/python-java/conversion/potm-to-ppsm/)
- [POTM TO PPSX](/slides/python-java/conversion/potm-to-ppsx/)
- [POTM TO PPTM](/slides/python-java/conversion/potm-to-pptm/)
- [POTM TO SVG](/slides/python-java/conversion/potm-to-svg/)
- [POTM TO TIFF](/slides/python-java/conversion/potm-to-tiff/)
