Convert PPS to SVG in C++

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

Convert PPS to SVG Using C++

Aspose.Slides for C++ is a C++ library for creating, reading, editing, and converting presentation files. It allows developers to convert PPS files to SVG in C++ applications without Microsoft PowerPoint.

Install the library from NuGet or download it from the Aspose.Slides for C++ releases page . You can also install it from the Package Manager Console.

Command

PM> Install-Package Aspose.Slides.Cpp

PPS to SVG C++ Conversion Source Code

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

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 PPS to SVG via C++

C++ developers can convert PPS files to SVG with a few lines of code.

  1. Create a Presentation instance from the source PPS file.
  2. Get the slide count from the Slides collection.
  3. Create a FileStream for each output SVG file.
  4. Call the WriteAsSvg method for each slide.

System Requirements

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

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

Built with Aspose.Slides

Convert PPS 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 PPS files.

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