---
title: "C# .NET URL to PDF: Load PDF from remote URL | Nutrient .NET SDK"
canonical_url: "https://www.nutrient.io/guides/dotnet/load-a-file/pdf/from-remote-url/"
md_url: "https://www.nutrient.io/guides/dotnet/load-a-file/pdf/from-remote-url.md"
last_updated: "2026-05-21T17:12:02.207Z"
description: "Load PDF from a remote URL in C# with Nutrient .NET SDK. Get code examples to download and process PDFs directly from web addresses. Streamline your .NET development."
---

# Load a PDF from a remote URL in C#

To load a PDF document from a remote URL, use the [`LoadFromHttp` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPicturePDF~LoadFromHttp.html) of the [`GdPicturePDF` class](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPicturePDF.html).

`LoadFromHttp` takes a `Uri` object and returns a `GdPictureStatus`. You should always check the returned status before continuing.

To load a PDF document from a URL, use the following code:

### C#

```csharp

using GdPicture14;
using System;

using GdPicturePDF gdpicturePDF = new GdPicturePDF();

// Create a Uri object pointing to a PDF document.
Uri pdfUri = new Uri("https://pspdfkit.com/downloads/pspdfkit-web-demo.pdf");

// Load the PDF document from URL.
GdPictureStatus status = gdpicturePDF.LoadFromHttp(pdfUri);
if (status!= GdPictureStatus.OK)
{
    Console.WriteLine($"LoadFromHttp failed: {status}");
    return;
}

// Save the loaded PDF document.
status = gdpicturePDF.SaveToFile(@"C:\temp\output.pdf");
if (status!= GdPictureStatus.OK)
{
    Console.WriteLine($"SaveToFile failed: {status}");
}

```

### VB.NET

```vb

Imports GdPicture14

Using gdpicturePDF As New GdPicturePDF()
    ' Create a Uri object pointing to a PDF document.
    Dim pdfUri As New Uri("https://pspdfkit.com/downloads/pspdfkit-web-demo.pdf")

    ' Load the PDF document from URL.
    Dim status As GdPictureStatus = gdpicturePDF.LoadFromHttp(pdfUri)
    If status <> GdPictureStatus.OK Then
        Console.WriteLine($"LoadFromHttp failed: {status}")
        Return
    End If

    ' Save the loaded PDF document.
    status = gdpicturePDF.SaveToFile("C:\temp\output.pdf")
    If status <> GdPictureStatus.OK Then
        Console.WriteLine($"SaveToFile failed: {status}")
    End If
End Using

```
---

## Related pages

- [Load a PDF file from local storage in C#](/guides/dotnet/load-a-file/pdf/from-local-storage.md)
- [Load a PDF from a stream in C# .NET](/guides/dotnet/load-a-file/pdf/from-stream.md)

