Convert PDF to PPTX in C++

Convert PDF files to PPTX presentations using Aspose.Slides for C++ without Adobe Acrobat or Microsoft PowerPoint.

Convert PDF to PPTX in C++

Aspose.Slides for C++ is a presentation processing API that can import PDF pages into a presentation and save the result as PPTX. Using Aspose.Slides for C++, developers can convert PDF files to PPTX with just a few lines of C++ code.

Aspose.Slides for C++ can convert PDF content to PPTX and other presentation-related formats.

Convert PDF to PPTX Using C++

To convert PDF to PPTX, create a Presentation, remove the default slide, import the PDF pages, and save the presentation in PPTX format.

C++ code for converting PDF into PPTX

auto presentation = MakeObject<Presentation>();
presentation->get_Slides()->RemoveAt(0);
presentation->get_Slides()->AddFromPdf(u"input.pdf");

presentation->Save(u"presentation.pptx", SaveFormat::Pptx);
presentation->Dispose();

How to convert PDF to PPTX using Aspose.Slides for C++ API

These are the steps to convert PDF to PPTX in C++.

  1. Install Aspose.Slides for C++ .

  2. Add a library reference to your C++ project.

  3. Remove the default slide and import the source PDF file into the Presentation object.

  4. Save the presentation as a PPTX file.

Free Online Converter

Convert presentations and slides online.

Convert PDF to Other Supported Formats

You can also convert PDF files and save them to other file formats. See all supported formats below.