Convert OTP Templates to PPT in Python

Save an OTP presentation template in the legacy PowerPoint PPT format with Aspose.Slides for Python via Java.

Convert OTP to PPT in Python

Aspose.Slides for Python via Java can load an OpenDocument Presentation Template (OTP) and save it in the PowerPoint 97-2003 PPT format. PPT is a legacy binary presentation format supported by Microsoft PowerPoint and other compatible applications. The conversion does not require Microsoft PowerPoint, LibreOffice, or OpenOffice.

Convert OTP to PPT using Python

Create a Presentation from the OTP file and call save with SaveFormat.Ppt to create the PPT file.

Python code for converting OTP to PPT

presentation = Presentation("presentation.otp")
try:
    presentation.save("presentation.ppt", SaveFormat.Ppt)
finally:
    presentation.dispose()

How to convert OTP to PPT in Python

Follow these steps to convert an OpenDocument presentation template to a legacy PowerPoint PPT file.

  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.Ppt to write the PPT file.