EvoPdf Next · Excel to PDF

Convert Excel XLSX workbooks to PDF in .NET

The Excel to PDF Converter enables accurate conversion of complex Excel documents to PDF. Convert all worksheets or only the first, keep the page settings and column widths from Excel or reflow with custom PDF page settings and add headers, footers, stamps and document security. The library targets .NET Standard 2.0 and runs on Windows, Linux and macOS, including Azure App Service, Azure Functions and Docker.

Version 14.60.1. Building EVO PDF libraries since 2010. Evaluate without registration; the demo output is watermarked until you set a license key. Licensed as part of the EVO PDF Toolkit.

Documentation · Samples and demos on GitHub · AI agent skills

ConsoleCLI
dotnet add package EvoPdf.Next.ExcelToPdf.Windows

This is the Windows package; EvoPdf.Next.ExcelToPdf.Linux and EvoPdf.Next.ExcelToPdf.MacOS work the same way, or use the all-components EvoPdf.Next.* metapackage for your platform.

Program.csC#
using EvoPdf.Next;

var converter = new ExcelToPdfConverter();
// keep page size, orientation and margins
converter.ExcelToPdfDocumentOptions
    .UsePageSettingsFromExcel = true;

byte[] pdf = converter.ConvertToPdf(excelBytes);
File.WriteAllBytes("workbook.pdf", pdf);
Convert a workbook with the original page settings. Full sample in the docs →
  • Windows 10, 11 and Windows Server 2016 to 2025 (x64 and ARM64)
  • Linux 64-bit distributions (x64 and ARM64)
  • macOS 12.0+ (Apple Silicon / ARM64)
  • .NET 10.0, 9.0, 8.0, 7.0, 6.0, .NET Standard 2.0
  • .NET Framework 4.6.2 to 4.8.1
  • Azure App Service and Azure Functions
  • Azure Cloud Services and Virtual Machines
  • Web, console and desktop applications
Features

What the Excel to PDF component does

  • Convert Excel XLSX documents from memory or from a file to PDF
  • Use the PDF page settings from the original Excel document
  • Use the page settings from the first or the active worksheet
  • Use custom PDF page settings to automatically reflow the content
  • Convert all worksheets or only the first worksheet
  • Display or hide the worksheet title
  • Keep the column widths and row heights from Excel
  • Add HTML headers, footers or stamps to the generated PDF
  • Control the PDF document display with PDF viewer preferences
  • Encrypt, set permissions and set passwords for the generated PDF documents
  • Add digital signatures to the generated PDF document
  • Asynchronous Excel to PDF methods that can be used with async and await
  • Docker containers for Windows and Linux

NuGet packages

Reference EvoPdf.Next.ExcelToPdf.Windows, .Linux, .MacOS or the .Arm64 variants, or the EvoPdf.Next.* metapackage for your platform, which includes every component.

ConsoleCLI
dotnet add package EvoPdf.Next.ExcelToPdf.Windows

On nuget.org: EvoPdf.Next.ExcelToPdf.Windows · .Linux · .MacOS · .Windows.Arm64 · .Linux.Arm64 · metapackage EvoPdf.Next

Excel XLSX to PDFDemoDocs + code
Licensing

Included in the EVO PDF Toolkit

Excel to PDF is licensed as part of the EVO PDF Toolkit, which covers every component on this site, Next and Classic: 650 USD for a Deployment License (one application on a single server) or 1400 USD for a Company License (unlimited developers, applications and servers, redistributable). Perpetual, with updates and support for the first year.