EvoPdf Next · Word to PDF

Accurate Word DOCX to PDF conversion in .NET

The Word to PDF Converter enables accurate conversion of complex Word documents to PDF. Generate a table of contents automatically, keep the original Word page settings or reflow the content with custom page sizes, add HTML headers, footers and stamps and apply security and digital signatures. 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.WordToPdf.Windows

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

Program.csC#
using EvoPdf.Next;

var converter = new WordToPdfConverter();
converter.PdfDocumentOptions
    .GenerateTableOfContents = true;
// one instance per conversion
byte[] pdf = converter.ConvertToPdf(docxBytes);
File.WriteAllBytes("word.pdf", pdf);
Convert a DOCX with an automatic table of contents. 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 Word to PDF component does

  • Convert Word DOCX documents from memory or from file to PDF
  • Use the PDF page settings from the original Word document
  • Use custom PDF page settings to automatically reflow the content
  • Automatically create a table of contents based on headings in Word
  • Use the page break marks from Word
  • 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 Word to PDF methods that can be used with async and await
  • Docker containers for Windows and Linux

NuGet packages

Reference EvoPdf.Next.WordToPdf.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.WordToPdf.Windows

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

Word DOCX to PDFDemoDocs + code
Licensing

Included in the EVO PDF Toolkit

Word 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.