Convert ODP Presentations to OTP in Python

Save an ODP presentation as a reusable OpenDocument presentation template with Aspose.Slides for Python via Java.

Convert ODP to OTP in Python

Aspose.Slides for Python via Java can load an ODP presentation and save it as an OTP file. The OTP output is an OpenDocument presentation template that can be used as the basis for new presentations. The conversion does not require Microsoft PowerPoint, LibreOffice, or OpenOffice.

Convert ODP to OTP using Python

Create a Presentation from the ODP file and call save with SaveFormat.Otp to create the OTP presentation template.

Python code for converting ODP to OTP

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

How to convert ODP to OTP in Python

Follow these steps to save an ODP presentation as a reusable OTP 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 ODP file with Presentation.

  4. Call save with SaveFormat.Otp to write the OTP presentation template.