DOCX JPG PDF XML PPTX
  Product Family
SVG

Convert PPTX to SVG in C++

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

Convert PPTX to SVG Using C++

Aspose.Slides for C++ is a PowerPoint processing API that lets you convert PPTX presentations to SVG 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

How to Convert PPTX to SVG via C++

Export each slide from a PPTX presentation as an SVG file in C++.

  1. Create a Presentation instance from the source PPTX 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, or another compatible OS with the supported C++ runtime.
  • Aspose.Slides for C++ referenced in your project.
 

PPTX to SVG C++ Conversion Source Code

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

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();
 
  • Free App to Convert PPTX to SVG

    Convert presentations and slides online.

    Other Supported Conversions

    You can also convert PPTX into many other file formats including few listed below.

    PPTX TO BMP (Bitmap Image)
    PPTX TO EMF (Enhanced Metafile Format)
    PPTX TO GIF (Graphical Interchange Format)
    PPTX TO HTML (Hyper Text Markup Language)
    PPTX TO JPEG (JPEG Image)
    PPTX TO ODP (OpenDocument Presentation Format)
    PPTX TO OTP (OpenDocument Standard Format)
    PPTX TO PDF (Portable Document Format)
    PPTX TO PNG (Portable Network Graphics)
    PPTX TO POT (Microsoft PowerPoint Template Files)
    PPTX TO POTM (Microsoft PowerPoint Template File)
    PPTX TO POTX (Microsoft PowerPoint Template Presentation)
    PPTX TO PPS (PowerPoint Slide Show)
    PPTX TO PPSM (Macro-enabled Slide Show)
    PPTX TO PPSX (PowerPoint Slide Show)
    PPTX TO PPT (Microsoft PowerPoint 97-2003)
    PPTX TO PPTM (Macro-enabled Presentation File)
    PPTX TO SWF (Small Web Format)
    PPTX TO TIFF (Tagged Image Format)
    PPTX TO XML (Extensible Markup Language)
    PPTX TO XPS (XML Paper Specifications)