Convert OTP Presentation Templates to PDF in Python
Export an OTP presentation template as a fixed-layout PDF document with Aspose.Slides for Python via Java.
Convert OTP to PDF in Python
Aspose.Slides for Python via Java can load an OTP presentation template and export it as a PDF document. The PDF output retains the presentation’s visual layout in a format suitable for sharing, printing, and archiving. The conversion does not require Microsoft PowerPoint, LibreOffice, or OpenOffice.
Convert OTP to PDF using Python
Create a Presentation from the OTP file and call save with SaveFormat.Pdf to generate a PDF document.
Python code for converting OTP to PDF
presentation = Presentation("presentation.otp")
try:
presentation.save("presentation.pdf", SaveFormat.Pdf)
finally:
presentation.dispose()
How to convert OTP to PDF in Python
Follow these steps to export an OTP presentation template as a PDF document.
Install Aspose.Slides for Python via Java .
Configure the package and start the Java Virtual Machine in your application.
Open the source OTP file with
Presentation.Call
savewithSaveFormat.Pdfto write the PDF document.
Convert OTP to Other Supported Formats
You can also convert OTP presentation templates to other supported file formats.