How to Save Slide as SVG in C#

In this simple tutorial, we will show you how to save Slide as SVG in C# without any reliance on PowerPoint. Good thing is that you do not need Microsoft PowerPoint or Interop for converting PPTX to SVG in C#. Moreover, the provided sample code can run seamlessly on all .NET platforms.

Steps to Export PPTX to SVG in C#

  1. Download Aspose.Slides for .NET package from NuGet.org
  2. Use Aspose.Slides, Aspose.Slides.Export, System.Drawing and System.IO namespaces for converting PPTX to SVG in C#
  3. Use SetLicense method to apply API license and use all features
  4. Using Presentation class, load the PPTX to convert slide to SVG
  5. Iterate through presentation slides to export slide as SVG
  6. Save slide as SVG on disk

Earlier, we have looked into how to convert PPTX to XPS using C# in another how-to topic. However, this topic describes the steps in C# for PowerPoint to SVG conversion. Good thing is that you do not need Microsoft PowerPoint or Interop for converting PPTX to SVG in C# and code seamlessly on all .NET based platforms.

Code to Export PPTX to SVG in C# without Interop

The example can be used in ASP.NET web application, Windows Forms application and Console based applications. You may use your local work machine or on any server having .NET Framework installed.

 English