Convert PDF to XML in C++
Import PDF pages into slides and save the result as a PowerPoint XML Presentation.
Convert PDF to XML Using C++
To convert PDF to PowerPoint XML, create a Presentation, remove the default slide, import the PDF pages, and save the presentation with SaveFormat::Xml.
C++ code for converting PDF into a PowerPoint XML Presentation
auto presentation = MakeObject<Presentation>();
presentation->get_Slides()->RemoveAt(0);
presentation->get_Slides()->AddFromPdf(u"input.pdf");
presentation->Save(u"document.xml", SaveFormat::Xml);
presentation->Dispose();Convert PDF to XML in C++
Aspose.Slides for C++ is a presentation processing API that can import PDF pages into slides and save the resulting presentation in PowerPoint XML Presentation format.
The generated XML represents the imported presentation; it is not a generic XML representation of the source PDF. Aspose.Slides for C++ can also export the imported content to PowerPoint, PDF, images, and other supported formats.
How to convert PDF to PowerPoint XML using Aspose.Slides for C++ API
These are the steps to import PDF pages and save them as a PowerPoint XML Presentation in C++.
- Install Aspose.Slides for C++.
- Add a library reference to your C++ project.
- Remove the default slide and import the source PDF file into the
Presentationobject. - Save the presentation with
SaveFormat::Xmlto create a PowerPoint XML Presentation file.
Built with Aspose.Slides
Convert PDF to XML 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 PDF files.
- Runs in your browser, nothing to install.
- See how Aspose.Slides converts files before you write code.
- Upload PDF files and save them as XML.
- Download the result or convert more files.
Convert PDF to Other Supported Formats
You can also convert PDF files and save them to other file formats. See all supported formats below.