New · ExpertPdf Anywhere v22.0.0

HTML to PDF and every PDF tool for .NET

ExpertPdf Anywhere is one .NET library that runs on Windows, Linux and macOS: HTML to PDF and HTML to image, Word, Excel, PowerPoint and RTF to PDF, PDF to Word, Excel and PowerPoint, PDF creation, merge, split, security and digital signatures, PDF to text and PDF to image. The same API as the classic ExpertPdf components, rendered with Chromium.

dotnet add package ExpertPdf.Anywhere.Windows
ExpertPdf.Anywherev22.0.0
  • Windowsx64 · x86
  • Linuxx64 · ARM64
  • macOSApple silicon
  • .NETStandard 2.0 · 8 · 10
16 tools1 packageChromium engine
.NET HTML to PDF library v22.0.0

HTML to PDF Converter for .NET

Convert HTML to PDF from your .NET application. ExpertPdf renders web pages, ASP.NET views and raw HTML with full HTML5, CSS3, canvas and SVG support, directly from your C# or VB.NET code, with no printer driver and no additional settings.

Free evaluation version C# & VB.NET samples included Microsoft Azure compatible
Supports
.NET Framework 4.x .NET Core .NET 5 .NET 6 .NET 7 .NET 8 .NET 9 .NET 10 .NET 11 Linux & macOS: ExpertPdf Anywhere

Convert a URL. See it become a PDF.

Enter the address of any public web page and click Export PDF. The conversion runs with default settings; in the library you can change the page size, orientation, headers, footers and many more properties.

Live URL to PDF

Type the address of a page that opens over the internet. The PDF downloads when it is ready.

Ready · waiting for a URL

Everything the modern web throws at it.

HTML5 and CSS3 support, including canvas, SVG and page breaks controlled with CSS. HTML in headers and footers. No printer driver, no extra settings.

HTML5, CSS3 and JavaScript

Rendered server-side by the internal WebKit engine, with an optional Chromium-based engine. Web fonts, canvas and SVG included.

html5 · css3 · javascript

Headers, footers, page breaks

Put text, images or HTML in running headers and footers, with page numbers. Control page breaks with the CSS page-break styles.

page-break-before · page-break-after

Links, bookmarks, security

HTML links stay clickable in the PDF, headings can become bookmarks, and the document can be protected with passwords and permissions.

links · bookmarks · encryption

No printer driver required

No driver installation or additional configuration. The library runs inside your .NET application: reference it and convert.

no extra software

.NET Framework to .NET 11

.NET Framework 4.x, .NET Core and .NET 5 to .NET 11, from ASP.NET, ASP.NET MVC, Razor Pages, Windows Forms and console applications.

C# · VB.NET

Azure ready

ExpertPdf works with Microsoft Azure in a virtual machine or a cloud service: the same library, the same code.

virtual machine · cloud service

A few lines of C#. URL to PDF.

Full C# and VB.NET samples for ASP.NET and Windows Forms ship with the download. ASP.NET MVC samples are available in C# and VB.NET; Razor Pages samples in C#.

Program.cs · C#
using ExpertPdf.HtmlToPdf;

// 1. Create and configure the converter
var converter = new PdfConverter();
converter.PdfDocumentOptions.PdfPageSize = PdfPageSize.A4;
converter.PdfDocumentOptions.PdfPageOrientation = PDFPageOrientation.Portrait;
converter.PdfDocumentOptions.ShowHeader = true;
converter.PdfDocumentOptions.ShowFooter = true;

// 2. Convert a web page (or an HTML string with GetPdfBytesFromHtmlString)
byte[] pdf = converter.GetPdfBytesFromUrl("https://www.example.com/");

// 3. Save it, or return it from your web application
File.WriteAllBytes("document.pdf", pdf);

More in the documentation, and step by step for C#, VB.NET, ASP.NET and ASP.NET MVC.

One toolkit for every PDF need.

ExpertPdf Anywhere is the flagship: every tool in one library for Windows, Linux and macOS. The classic components are also sold one by one, or bundled in the ExpertPdf Toolkit (ten components) and the ExpertComponents Toolkit Total (eleven, with the Excel library).

Flagship · New

ExpertPdf Anywhere

Every ExpertPdf tool in one .NET library that runs on Windows, Linux and macOS: HTML, Word and RTF to PDF, PDF creation, merge, split, security, PDF to text and image.

Learn more
Conversion

HTML to PDF Converter

Convert HTML pages, files or strings to PDF. HTML5, CSS3, canvas and SVG support, with headers, footers and CSS-controlled page breaks.

  • URL, HTML file or string to PDF
  • HTML5, CSS3, JavaScript, SVG
  • HTML headers and footers
  • Automatic and CSS page breaks
  • Links, bookmarks, signatures
  • PDF/A, PDF/X and PDF/UA-1
  • Chromium, Blink and WebKit
  • Login pages, POST data, async
  • .NET Framework to .NET 11
  • C#, VB.NET, ASP.NET, MVC
$ dotnet add package ExpertPdf.HtmlToPdf.NetCore Learn more · v22.0.0
Conversion

HTML to Image Converter

Render web pages and HTML strings to images.

Details
Creation

PDF Creator

A PDF library for .NET to build PDF documents from code.

Details
Extraction

PDF to Text

Extract text from PDF documents.

Details
Extraction

PDF to Image Converter

Render PDF pages to image files.

Details
Manipulation

PDF Merge

Combine PDF documents and images into one PDF.

Details
Manipulation

PDF Split

Split a PDF document into separate files.

Details
Viewer

PDF Viewer

Display, search and print PDF documents in Windows Forms, WPF and ASP.NET.

Details
Conversion

RTF to PDF

Convert RTF documents to PDF.

Details
Security

PDF Security

Encrypt PDF documents and set permissions.

Details
Extraction

PDF Images Extractor

Extract the images embedded in PDF documents.

Details
Companion

Excel Library

ExpertXLS: create and edit Excel files from .NET.

Details
HTML to PDF is a quality component that is clearly valuable to any Web developer in need of an easy and flexible way to generate PDF files.
Steve C. Orr MCSD, Microsoft MVP in ASP.NET

Who uses ExpertPdf →

Questions developers ask.

Common questions about the library, .NET support and the evaluation download.

Do I need a printer driver or any additional software?
No. No printer driver installation or additional settings are necessary to get ExpertPdf working.
Which .NET versions are supported?
ExpertPdf supports .NET Framework 4.x, .NET Core, .NET 5, .NET 6, .NET 7, .NET 8, .NET 9, .NET 10 and .NET 11, from C#, VB.NET, ASP.NET, ASP.NET MVC and Razor Pages.
Does it work on Microsoft Azure?
Yes. ExpertPdf works with Microsoft Azure in a virtual machine or a cloud service.
What HTML and CSS features are supported?
The HtmlToPdf Converter supports HTML5, CSS3 and JavaScript, including canvas, SVG and page breaks controlled with CSS. HTML can also be added in headers and footers.
What sample code is included?
Full C# and VB.NET samples for ASP.NET and Windows Forms are in the downloaded archive. Full ASP.NET MVC samples are available in C# and VB.NET, and ASP.NET Core Razor Pages samples in C#.
Is there a free version I can try?
Yes. Download the free evaluation version. With the evaluation you can change the headers, footers, page size, page orientation and many other properties. You can also try the free online HTML to PDF converter.
What does the ExpertPdf Toolkit include?
The ExpertPdf Toolkit contains ten components: HTML to PDF Converter (with HTML to Image), PDF Creator, PDF to Text, PDF to Image, PDF Merge, PDF Split, PDF Viewer, RTF to PDF, PDF Security and PDF Images Extractor, and ExpertPdf Anywhere, the cross-platform library with every tool. The ExpertComponents Toolkit Total adds the ExpertXLS Excel Library, for eleven components in total, and ExpertPdf Anywhere too.
How do I get in touch?
Email office@html-to-pdf.net. Documentation, the FAQ and the downloads are linked from the Support page.

Try the converter free, or buy it today.

Download the free evaluation with C# and VB.NET samples for ASP.NET, ASP.NET MVC, ASP.NET Core Razor Pages and Windows Forms. When you are ready, license it on the pricing page.

Targets.NET Framework · .NET Core · .NET 5 to 11
Versionv22.0.0 · November 20, 2026