This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/dotnet/load-a-file/converter/from-local-storage-svg.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Load a vector image (SVG) for conversion in C# .NET | Nutrient .NET SDK
SVG

To load an SVG image for conversion, use the LoadFromFile method from the GdPictureDocumentConverter class.

LoadFromFile accepts:

When loading SVG, you can pass DocumentFormat.DocumentFormatUNKNOWN and let the toolkit detect the format.

LoadFromFile returns a GdPictureStatus, which should always be checked before conversion.

To load and convert an SVG image from local storage, use the following code:

using GdPicture14;
using System;
using GdPictureDocumentConverter converter = new GdPictureDocumentConverter();
GdPictureStatus status = converter.LoadFromFile(
@"C:\temp\source.svg",
DocumentFormat.DocumentFormatUNKNOWN);
if (status != GdPictureStatus.OK)
{
Console.WriteLine($"LoadFromFile failed: {status}");
return;
}
status = converter.SaveAsPDF(@"C:\temp\output.pdf");
if (status != GdPictureStatus.OK)
{
Console.WriteLine($"SaveAsPDF failed: {status}");
}