Convert PPT to OTP in Python

Save a legacy PowerPoint presentation as an OpenDocument Presentation Template with Aspose.Slides for Python via Java.

Convert PPT to OTP in Python

Aspose.Slides for Python via Java can load a legacy PowerPoint presentation (.ppt) and save it as an OpenDocument Presentation Template (.otp) without Microsoft PowerPoint. The resulting file can be used in applications that support the OpenDocument template format.

Load the source file with Presentation, then call save with SaveFormat.Otp.

Convert PPT to OTP using Python

Create a Presentation from the source PPT file, then call save with SaveFormat.Otp.

Python code for converting PPT to OTP

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

How to convert PPT to OTP in Python

Follow these steps to save a PowerPoint PPT presentation as an OpenDocument 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 PPT file with Presentation.

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