In this tutorial, we will explore how to Save Slide as SVG in C++. SVG is popular format while rendering images in browsers and using C++, you can convert PowerPoint Slide to SVG in few API calls.
Steps to Save Slide as SVG in C++
- Install Aspose.Slides for C++ with NuGet package Manager tool
- include reference to Aspose::Slides namespace
- Load the presentation file for saving slide as SVG using Presentation Class instance
- Use the WriteAsSvg method to convert slide to SVG
You can easily convert PPTX to SVG in C++ using few lines of code and with no reliance or dependency on Microsoft Interop or PowerPoint.
Code to Convert Slide to SVG in C++
Previously, we learnt How to Covert PowerPoint Presentation to XPS Using C++. Whereas in the above example we have seen how to export Slide as SVG using C++.