Convert POTX Templates to OTP in Python

Export a PowerPoint Open XML template as an OpenDocument Presentation Template with Aspose.Slides for Python via Java.

Convert POTX to OTP in Python

Aspose.Slides for Python via 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

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.

  1. Install Aspose.Slides for Python via Java .

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

  3. Open the source POTX file with Presentation.

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