This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/dotnet/conversion/excel-to-pdf.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. C# .NET Excel to PDF: Convert XLS, XLSX to PDF | Nutrient .NET SDK
Excel to PDF

Converting Excel documents to PDF helps you preserve layout, formatting, and visual structure when you share files across teams and systems.

Use this workflow when you need to distribute reports, dashboards, budgets, or analysis files without relying on spreadsheet software on the recipient side.

Excel-to-PDF conversion helps you:

  • Preserve worksheet formatting and print layout
  • Keep charts and tables in a fixed presentation format
  • Share files that open consistently across platforms
  • Archive documents in a stable output format

Prepare the project

Register the SDK license before you run conversion operations. For setup details, refer to the getting started with .NET SDK guide.

using GdPicture14;
LicenseManager licence = new LicenseManager();
licence.RegisterKEY(""); // Set your license key

Create the document converter

Create a GdPictureDocumentConverter instance:

using GdPictureDocumentConverter converter = new GdPictureDocumentConverter();

Load the Excel document

Load the source spreadsheet:

converter.LoadFromFile(@"input.xlsx");

The converter reads workbook content and prepares it for PDF output.

Convert to PDF

Save the loaded workbook as a PDF:

converter.SaveAsPDF(@"output.pdf");

The output PDF preserves workbook appearance for sharing and long-term storage.