Convert PPSX Files to OTP in Python

Turn a PowerPoint slide show into a reusable OpenDocument presentation template.

Convert PPSX to OTP in Python

Aspose.Slides for Python via Java can convert a PowerPoint Slide Show (.ppsx) to an OpenDocument Presentation Template (.otp) without Microsoft PowerPoint or LibreOffice. The OTP output can serve as a reusable starting point for presentations in applications that support the OpenDocument format.

Load the source file with Presentation, then call save with SaveFormat.Otp. Aspose.Slides writes the supported slide content, layouts, and formatting to the template file.

How to Convert PPSX to OTP in Python

Create a Presentation from the source PPSX file and save it with SaveFormat.Otp.

Python code for converting PPSX to OTP

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

Steps to Convert PPSX to OTP in Python

The conversion loads the PowerPoint slide show and writes its content to an OpenDocument presentation template.

  1. Install Aspose.Slides for Python via Java .

  2. Configure JPype and make the Aspose.Slides package available to your Python project.

  3. Create a Presentation from the source .ppsx file.

  4. Call save with SaveFormat.Otp and an .otp output path.