Aspose.SVG   for .NET

.NET APIs to Parse SVG Files

Load, Parse and Convert SVG to PDF, XPS, PNG and other popular image formats without any software dependencies.

  Download Free Trial
  
 

Aspose.SVG for .NET is flexible library for SVG files processing and fully compatible with its specifications. API can easily load, save and convert SVG files as well as read and traverse the elements of file through its Document Object Model (DOM). API is independent of any other software and empowers developers to work with SVG files without going into the underlying details of the format.

Advanced .NET SVG Parsing API Features

Create and read SVG documents

Edit and Save SVG files

Convert SVG to popular formats

Full control over SVG nodes

Add and remove nodes

Change the node properties

Content navigation using XPath Query

Navigate via CSS Selectors, Element and Document Traversal

DOM Tree manipulation of official SVG specifications

Convert SVG to PNG

Aspose.SVG for .NET can read and convert SVG files to PDF, XPS and major image formats. Getting conversion functionality is simple and depends on each application requirement. Here is the few lines of code for PNG conversion.

Save SVG to PNG - C#

string dataDir = RunExamples.GetDataDir_Data();

using (var document = new SVGDocument(Path.Combine(dataDir, "sourcefile.svg"))){

    using (var device = new ImageDevice(new ImageRenderingOptions(ImageFormat.Png), dataDir + "targetfile.png")){

        document.RenderTo(device);

    }

}
  

Support and Learning Resources