# Convert POTX to OTP in Python

> Convert POTX presentation templates to OTP presentation templates in Python with Aspose.Slides for Python via Java.

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



## Convert POTX to OTP in Python

[**Aspose.Slides for Python via Java**](/slides/python-java/) can load a PowerPoint Open XML template (`POTX`) and export it as an OpenDocument Presentation Template (`OTP`). The output remains a reusable presentation template and does not require Microsoft PowerPoint, LibreOffice, or OpenOffice.

## Convert POTX to OTP using Python

Create a `Presentation` from the POTX file, then call `save` with `SaveFormat.Otp`.

### Python code for converting POTX to OTP

```python
presentation = Presentation("presentation.potx")
try:
    presentation.save("presentation.otp", SaveFormat.Otp)
finally:
    presentation.dispose()
```

## How to convert POTX to OTP in Python

Follow these steps to export a PowerPoint Open XML template as an OpenDocument Presentation Template.

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

Call `save` with `SaveFormat.Otp` to create the OTP file.

## Convert POTX to Other Supported Formats
