Convert PPTX Presentations to OTP in Python

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

Convert PPTX to OTP in Python

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

Convert PPTX to OTP using Python

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

Python code for converting PPTX to OTP

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

How to convert PPTX to OTP in Python

Follow these steps to save a PPTX 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 PPTX file with Presentation.

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