Convert ODP to PDF in C++

Convert ODP to PDF using Aspose.Slides for C++ without Microsoft PowerPoint.

Convert ODP to PDF Using C++

To convert ODP to PDF, use Aspose.Slides for C++ , a presentation processing API for C++ applications. You can download the latest version directly from NuGet , search for Aspose.Slides.Cpp, and install it. You may also use the following command from the Package Manager Console.

Command

PM> Install-Package Aspose.Slides.Cpp

ODP to PDF C++ Conversion Source Code

auto presentation = MakeObject<Presentation>(u"presentation.odp");
presentation->Save(u"document.pdf", SaveFormat::Pdf);
presentation->Dispose();

How to Convert ODP to PDF via C++

C++ developers can convert an ODP file to PDF in just a few lines of code.

  1. Load the ODP file with the Aspose.Slides for C++ Presentation class.
  2. Call the Save() method.
  3. Pass the output file path with the PDF file extension.
  4. The PDF file will be saved at the specified path.
  5. Open the PDF file in a compatible program.

System Requirements

Before running the C++ conversion example code, make sure that you have the following prerequisites.

  • Microsoft Windows, Linux, macOS, or another compatible OS with the supported C++ runtime.
  • Aspose.Slides for C++ library referenced in your project.

Built with Aspose.Slides

Convert ODP to PDF Online

The free Aspose.Slides Conversion app is built with Aspose.Slides for C++, the same API as the code above. Open it and see what the API can do with your own ODP files.

  • Runs in your browser, nothing to install.
  • See how Aspose.Slides converts files before you write code.
  • Upload ODP files and save them as PDF.
  • Download the result or convert more files.