OpenOffice uses ODP file format for its presentation documents. ODP files are a collection of slides containing text, images, charts, animations, and other media types. There might be situations where you need to convert your ODP files to PDF format. To that end, this article will teach you how to convert ODP files to PDF format using C++.
C++ API for Converting ODP Files to PDF Format
Aspose.Slides for C++ is a C++ API for working with PowerPoint files. It enables you to create, read and modify PowerPoint files without needing additional software. Furthermore, the API supports converting ODP files to PDF format. You can either install the API through NuGet or download it directly from the Downloads section.
PM> Install-Package Aspose.Slides.Cpp
Converting ODP Files to PDF Format using C++
The following are the steps to convert ODP files to PDF format using C++.
- Load the ODP file using the Presentation class.
- Save the ODP file as PDF using the Presentation->Save(System::String fname, Export::SaveFormat format) method.
The following sample code shows how to convert ODP files to PDF format using C++.
Get a Free License
In order to try the API without evaluation limitations, you can request a free temporary license.
In this article, you have learned how to convert ODP files to PDF format using C++. The shared code snippet shows how to convert ODP Files to PDF format with just a few lines of code. Aspose.Slides for C++ is a robust API that you can explore in detail by visiting the official documentation. In case of any questions, please feel free to reach us at our free support forum.