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-pdf.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Load a PDF for conversion in C# .NET | Nutrient .NET SDK
PDF

To load a PDF document for conversion, use the LoadFromFile method from the GdPictureDocumentConverter class.

LoadFromFile accepts:

  • FilePath — Path to the input document.
  • DocumentFormat (optional) — A member of the DocumentFormat enumeration. For PDF input, use DocumentFormat.DocumentFormatPDF (or omit and let the toolkit auto-detect).

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

To load and convert a PDF document from local storage, use the following code:

using GdPicture14;
using System;
using GdPictureDocumentConverter converter = new GdPictureDocumentConverter();
GdPictureStatus status = converter.LoadFromFile(
@"C:\temp\source.pdf",
DocumentFormat.DocumentFormatPDF);
if (status != GdPictureStatus.OK)
{
Console.WriteLine($"LoadFromFile failed: {status}");
return;
}
// Convert PDF to TIFF.
status = converter.SaveAsTIFF(@"C:\temp\output.tif", TiffCompression.TiffCompressionAUTO);
if (status != GdPictureStatus.OK)
{
Console.WriteLine($"SaveAsTIFF failed: {status}");
}