Convert OpenDocument Presentations in Python
Convert ODP Files
Aspose.Slides API allows you to convert OpenOffice ODP presentations to many formats. The API used to convert ODP files to other document formats is the same one used for PowerPoint (PPT and PPTX) conversion operations.
These examples show you how to convert ODP documents to other formats (just change the source ODP file):
- Convert ODP to HTML
- Convert ODP to PDF
- Convert ODP to TIFF
- Convert ODP to SWF Flash
- Convert ODP to XPS
- Convert ODP to PDF with Notes
- Convert ODP to TIFF with Notes
For example, if you need to convert an ODP presentation to PDF, it can be done this way:
import aspose.slides as slides
pres = slides.Presentation("pres.odp")
pres.save("pres.pdf", slides.export.SaveFormat.PDF)
FAQ
Can I convert ODP to PPTX without installing LibreOffice or OpenOffice?
Yes. Aspose.Slides is a fully standalone library that handles both PowerPoint and OpenOffice formats without requiring any external applications.
Does Aspose.Slides open and save password-protected ODP/OTP files?
Yes. It can load encrypted presentations when you provide the password and can also save presentations with encryption and protection settings.
Can I extract embedded media files (audio/video) from an ODP before converting it?
Yes. Aspose.Slides lets you access and extract embedded audio and video from presentations, which is helpful for pre-conversion processing or separate reuse.
Can I save the converted ODP as Strict Office Open XML?
Yes. When saving to PPTX you can enable Strict OOXML via the save options to meet stricter compliance requirements.