# Convert OTP to POTX in Python

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

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



## Convert OTP to POTX in Python

[**Aspose.Slides for Python via Java**](/slides/python-java/) can load an OTP presentation template and save it in the macro-free POTX presentation format based on Office Open XML. The conversion does not require Microsoft PowerPoint, LibreOffice, or OpenOffice.

## Convert OTP to POTX using Python

Create a `Presentation` from the OTP file and call `save` with `SaveFormat.Potx` to create the POTX file.

### Python code for converting OTP to POTX

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

## How to convert OTP to POTX in Python

Follow these steps to save an OpenDocument presentation template in the macro-free POTX 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 OTP file with `Presentation`.

Call `save` with `SaveFormat.Potx` to write the POTX file.

## Convert OTP to Other Supported Formats
