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.
Install Aspose.Slides for Python via Java .
Configure JPype and make the Aspose.Slides package available to your Python project.
Create a
Presentationfrom the source.ppsxfile.Call
savewithSaveFormat.Otpand an.otpoutput path.
Convert PPSX to Other Supported Formats
You can also convert PPSX presentations to other supported file formats.