Convert POTX Templates to OTP in Python
Export a PowerPoint Open XML template as an OpenDocument Presentation Template with Aspose.Slides for Python via Java.
Convert POTX to OTP using Python
Create a Presentation from the POTX file, then call save with SaveFormat.Otp.
Python code for converting POTX to OTP
presentation = Presentation("presentation.potx")
try:
presentation.save("presentation.otp", SaveFormat.Otp)
finally:
presentation.dispose()Convert POTX to OTP in Python
Aspose.Slides for Python via Java
can load a PowerPoint Open XML template (POTX) and export it as an OpenDocument Presentation Template (OTP). The output remains a reusable presentation template and does not require Microsoft PowerPoint, LibreOffice, or OpenOffice.
How to convert POTX to OTP in Python
Follow these steps to export a PowerPoint Open XML template as an OpenDocument Presentation Template.
- Install Aspose.Slides for Python via Java.
- Configure the package and start the Java Virtual Machine in your application.
- Open the source POTX file with
Presentation. - Call
savewithSaveFormat.Otpto create the OTP file.
Convert POTX to Other Supported Formats
You can also convert POTX presentation templates to other supported file formats.