# Convert OTP to PPSM in Python

> Convert OTP templates to PPSM slide shows in Python with Aspose.Slides for Python via Java.

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



## Convert OTP to PPSM in Python

[**Aspose.Slides for Python via Java**](/slides/python-java/) can load an OTP presentation template and save it as a PPSM file. PPSM is the macro-enabled Office Open XML format for PowerPoint slide shows; converting an OTP file does not add VBA macros to it. The conversion does not require Microsoft PowerPoint, LibreOffice, or OpenOffice.

## Convert OTP to PPSM using Python

Create a `Presentation` from the OTP file and call `save` with `SaveFormat.Ppsm` to create the PPSM slide show.

### Python code for converting OTP to PPSM

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

## How to convert OTP to PPSM in Python

Follow these steps to convert an OpenDocument presentation template to a macro-enabled PowerPoint slide show.

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.Ppsm` to write the PPSM slide show.

## Convert OTP to Other Supported Formats
