Convert PPSX to SVG in C++

Convert PPSX to SVG using Aspose.Slides for C++ without Microsoft PowerPoint.

Convert PPSX to SVG Using C++

Aspose.Slides for C++ is a PowerPoint processing API that lets you convert PPSX slides to SVG files in C++ applications without Microsoft PowerPoint. Install the library from NuGet or download it from the Aspose.Slides for C++ releases page .

Command

PM> Install-Package Aspose.Slides.Cpp

PPSX to SVG C++ Conversion Source Code

auto presentation = MakeObject<Presentation>(u"presentation.ppsx");

auto slideCount = presentation->get_Slides()->get_Count();
for (int slideIndex = 0; slideIndex < slideCount; slideIndex++)
{
    auto fileName = String::Format(u"slide_{0}.svg", slideIndex);
    auto fileStream = MakeObject<FileStream>(fileName, FileMode::Create, FileAccess::Write);

    auto slide = presentation->get_Slide(slideIndex);
    slide->WriteAsSvg(fileStream);
    fileStream->Dispose();
}

presentation->Dispose();

How to Convert PPSX to SVG via C++

Export each slide in a PPSX presentation to a separate SVG file with C++.

  1. Create a Presentation instance from the source PPSX file.
  2. Get the slide count from the presentation.
  3. Create a FileStream for each output SVG file.
  4. Call WriteAsSvg for each slide.

System Requirements

Before running the C++ conversion example, make sure that the following prerequisites are available.

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

Built with Aspose.Slides

Convert PPSX to SVG 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 PPSX files.

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