This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/dotnet/load-a-file/converter/from-remote-url-svg.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Load and convert an SVG image from a remote URL | Nutrient .NET SDK
SVG

To load and convert an SVG image from a remote URL, use the LoadFromHttp method from the GdPictureDocumentConverter class.

LoadFromHttp accepts:

  • HttpUri — A Uri pointing to the source image.
  • DocumentFormat (optional) — A member of the DocumentFormat enumeration. For SVG input, DocumentFormat.DocumentFormatUNKNOWN can be used for format detection.

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

To load and convert an SVG image from a remote URL, use the following code:

using GdPicture14;
using System;
using GdPictureDocumentConverter converter = new GdPictureDocumentConverter();
Uri fileUri = new Uri("https://pspdfkit.com/downloads/load-a-file/source.svg");
GdPictureStatus status = converter.LoadFromHttp(fileUri, DocumentFormat.DocumentFormatUNKNOWN);
if (status != GdPictureStatus.OK)
{
Console.WriteLine($"LoadFromHttp failed: {status}");
return;
}
status = converter.SaveAsPDF(@"C:\temp\output.pdf");
if (status != GdPictureStatus.OK)
{
Console.WriteLine($"SaveAsPDF failed: {status}");
}