Convert POTM to OTP in Python
Python presentation library for converting POTM to OTP
Convert POTM to OTP in Python
Use
Aspose.Slides for Python via .NET
to convert POTM files to OTP programmatically. Load a macro-enabled PowerPoint template with Presentation, then call save with SaveFormat.OTP.
Aspose.Slides performs the conversion without requiring Microsoft PowerPoint. You can evaluate POTM-to-OTP output with the free online conversion app . The same API supports many other presentation and export formats.
Install the package from
PyPI
using pip:
Console/Terminal
pip install aspose-slides
Save POTM as OTP in Python
Try the free online conversion app to see the POTM-to-OTP conversion process.
Python code to convert POTM to OTP
with slides.Presentation("presentation.potm") as presentation:
presentation.save("presentation.otp", slides.export.SaveFormat.OTP)How to Convert POTM to OTP in Python
These are the steps to convert a POTM file to OTP using Python.
- Load the POTM file into a
Presentationinstance. - Call the
savemethod with the output file path andSaveFormat.OTP. - The converted OTP file is written to the specified path.
System Requirements
Before running the Python conversion example, make sure your environment meets these requirements.
- Windows, 64-bit Linux, or macOS (see the system requirements )
- Python 3.5 or later
- Aspose.Slides for Python via .NET installed in your environment
Other Supported Conversions
You can also convert POTM to many other file formats. See the supported conversions below.