Convert OpenOffice ODP to PDF in Python

Convert OpenOffice ODP to PDF in Python

ODP format is used by OpenOffice to store the presentation documents. Similar to PowerPoint PPT/PPTX, ODP presentation contains slides and each slide is composed of text, images, and other elements. In certain cases, e.g. for sharing the presentations, you have to convert ODP files to PDF format. To achieve that, this article covers how to convert an ODP presentation to PDF in Python.

Python Library for ODP to PDF Conversion

Aspose.Slides for Python is a feature-rich library that lets you create and manipulate PowerPoint and OpenOffice presentations. Moreover, it allows you to convert the presentations to other popular file formats. We will use this library to convert ODP files to PDF format. You can install the library from PyPI using the following command.

> pip install aspose.slides

Convert an ODP File to PDF in Python

Aspose.Slides for Python lets you perform ODP to PDF conversion within a couple of lines of code. The following are the steps to convert an ODP file to PDF in Python.

  • Load the ODP file using Presentation class.
  • Save ODP as PDF using, SaveFormat.PDF) method.

The following code sample shows how to convert an ODP file to PDF programmatically.

The following screenshot shows the output of ODP to PDF conversion.

ODP to PDF Conversion in Python

Get a Free License

You can get a free temporary license to use Aspose.Slides for Python without evaluation limitations.


In this article, you have learned how to convert OpenOffice ODP presentations to PDF in Python. Simply install Aspose.Slides for Python and integrate the provided code sample in your Python applications. You may also like to explore more about Aspose.Slides for Python using the documentation. In case you would have any questions or queries, feel free to let us know via our forum.

See Also