Import Presentation - C++ PowerPoint API

Contents
[ ]

Aspose.Slides for C++ allows you to import presentations from PDFs. Essentially, you get to convert a PDF to a PowerPoint presentation.

pdf-to-powerpoint

Go through these steps:

  1. Instantiate an object of the presentation class.
  2. Call the AddFromPdf method and pass the PDF file.
  3. Use the Save method to save the file in the PowerPoint format.

This C++ code demonstrates the PDF to PowerPoint process:

auto pres = System::MakeObject<Presentation>();
    
pres->get_Slides()->AddFromPdf(u"InputPDF.pdf");
pres->Save(u"OutputPresentation.pptx", SaveFormat::Pptx);