Convert OTP Templates to PPTX in Python

Transform an OTP presentation template into an editable PPTX file with Aspose.Slides for Python via Java.

Convert OTP to PPTX in Python

Aspose.Slides for Python via Java can load an OpenDocument Presentation Template (OTP) and save it as an editable PPTX file while preserving its slides and content. The conversion does not require Microsoft PowerPoint, LibreOffice, or OpenOffice.

Convert OTP to PPTX using Python

Create a Presentation from the OTP file and call save with SaveFormat.Pptx to create the PPTX file.

Python code for converting OTP to PPTX

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

How to convert OTP to PPTX in Python

Follow these steps to convert an OpenDocument presentation template to PPTX format.

  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 OTP file with Presentation.

  4. Call save with SaveFormat.Pptx to write the PPTX file.