ExpertPdfHtmlToPdf 22.0.0

dotnet add package ExpertPdfHtmlToPdf --version 22.0.0
                    
NuGet\Install-Package ExpertPdfHtmlToPdf -Version 22.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ExpertPdfHtmlToPdf" Version="22.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ExpertPdfHtmlToPdf" Version="22.0.0" />
                    
Directory.Packages.props
<PackageReference Include="ExpertPdfHtmlToPdf" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ExpertPdfHtmlToPdf --version 22.0.0
                    
#r "nuget: ExpertPdfHtmlToPdf, 22.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ExpertPdfHtmlToPdf@22.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ExpertPdfHtmlToPdf&version=22.0.0
                    
Install as a Cake Addin
#tool nuget:?package=ExpertPdfHtmlToPdf&version=22.0.0
                    
Install as a Cake Tool

ExpertPdf HTML to PDF Converter for .NET

ExpertPdf HTML to PDF Converter is a .NET library that converts web pages, HTML strings and HTML files to PDF documents and images. It renders the HTML like a browser, with a choice of rendering engines, and gives you full control over the PDF: page settings, headers and footers, bookmarks, links, security, PDF/A, tagged PDF and electronic invoices.

This package contains the library for .NET Framework 2.0 to 4.8.1. It is the build for x86 and AnyCPU applications; for 64-bit applications use ExpertPdfHtmlToPdf-x64.

Features

  • Convert web pages (URLs), HTML strings and HTML files to PDF documents, and to images
  • Three rendering engines: WebKit (built in), Blink and Chromium (separate engine packages) with full support for HTML5, CSS3, web fonts and modern JavaScript
  • Page size, orientation, margins, fit width, page breaks control (CSS page-break, keep together), repeated table headers
  • Headers and footers with HTML content and page numbering
  • Automatic bookmarks, table of contents, live internal and external links
  • Tagged (accessible) PDF / PDF/UA, PDF/A-1b, PDF/A-2b, PDF/A-3b, PDF/A-3u, PDF/A-3a and PDF/X-1a
  • ZUGFeRD 2.x / Factur-X electronic invoices and associated files (PDF/A-3)
  • Security: user and owner passwords, print / copy / edit permissions, 40, 128 and 256 bit encryption; digital signatures
  • Authentication, cookies, HTTP headers and POST data; select or exclude page elements; JavaScript delay and conversion triggered from JavaScript
  • Add text, images, shapes and more HTML to the generated PDF; merge with existing PDF documents
  • Thread safe: convert in parallel in web applications and services

Requirements

  • .NET Framework 2.0 to 4.8.1.
  • Windows 10, Windows 11, Windows Server 2016 or later (32-bit or 64-bit).

Rendering engines

  • WebKit - built in, the default engine.
  • Chromium (Chromium 154) - install ExpertPdf.HtmlToPdf.Chromium.Windows; Windows; runs in its own process.

Getting started

using ExpertPdf.HtmlToPdf;

PdfConverter pdfConverter = new PdfConverter();
// pdfConverter.LicenseKey = "your license key";
pdfConverter.PdfDocumentOptions.PdfPageSize = PdfPageSize.A4;
pdfConverter.SavePdfFromUrlToFile("https://www.html-to-pdf.net", "output.pdf");

What's new in version 22.0

  • New Chromium rendering engine (Chromium 154), running out of process: the ExpertPdf.HtmlToPdf.NetCore.Chromium.Windows and ExpertPdf.HtmlToPdf.Chromium.Windows packages; RenderingEngine.Chromium
  • Blink rendering engine updated to Chromium 148, with more robust launching under load (BlinkEngineLaunchTimeout, BlinkEngineLaunchMaxTries, BlinkMaxThreadPoolWorkers)
  • Tagged (accessible) PDF and PDF/UA-1: PdfConverter.Tagged and Language, PdfTagType, alternate and actual text, artifacts
  • PDF/A-2b, PDF/A-3b, PDF/A-3u and PDF/A-3a (PdfStandardSubset); associated files (Document.AddAssociatedFile)
  • ZUGFeRD 2.x / Factur-X electronic invoices: Document.AddZugferdInvoice (Minimum to Extended and XRechnung profiles)
  • New options: HttpPostParameters, SecureProtocol, RenderElementSelector, PageRanges, WindowStatus, EnableOfflineMode, WebGlEnabled, AllowContentHeightResize
  • Bookmarks, internal links and HTML elements mapping on the Blink and Chromium engines
  • ManagedContentTrimming: with the Chromium engine the last page ends where the content ends
  • MaxConversionTime: a time limit for one conversion, on every engine
  • Asynchronous methods with cancellation: GetPdfBytesFromUrlAsync, SavePdfFromUrlToFileAsync and more
  • Table of contents with page numbers and links (Document.InsertTableOfContents), page labels and named destinations

Licensing

A license key is emailed to you when you purchase the product. Set it in your code before you use the library:

pdfConverter.LicenseKey = "your license key";

Without a license key the library runs in evaluation mode.

Documentation and support

Documentation, samples and the API reference: https://www.html-to-pdf.net/Support.aspx

For any problems, contact us: office@html-to-pdf.net

https://www.html-to-pdf.net

Product Compatible and additional computed target framework versions.
.NET Framework net20 is compatible.  net35 was computed.  net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ExpertPdfHtmlToPdf:

Package Downloads
ExpertPdf.HtmlToPdf.Chromium.Windows

ExpertPdf HTML to PDF Converter is a .NET library that converts web pages, HTML strings and HTML files to PDF documents and images. It renders the HTML like a browser, with a choice of rendering engines, and gives you full control over the PDF: page settings, headers and footers, bookmarks, links, security, PDF/A, tagged PDF and electronic invoices. This package adds the Chromium rendering engine (Chromium 154, Windows) for x86 and AnyCPU applications to the ExpertPdfHtmlToPdf package. The engine runs in its own process; its files are copied next to your application when it builds. Select it with RenderingEngine = RenderingEngine.Chromium. Rendering engines - WebKit - built in, the default engine. - Chromium (Chromium 154) - install ExpertPdf.HtmlToPdf.NetCore.Chromium.Windows; Windows; runs in its own process.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
22.0.0 146 11/20/2026
21.1.0 6,886 5/12/2026
20.1.0 11,741 4/8/2025
19.0.0 21,962 5/27/2024
18.1.0 29,606 12/4/2023
18.1.0-rc1 10,997 9/21/2023
18.0.0 34,985 3/30/2023
17.0.0 63,864 4/6/2022
16.1.0 52,364 10/19/2021
16.0.0 71,750 5/20/2021
16.0.0-rc1 2,499 4/20/2021
15.1.0 30,761 11/24/2020
15.0.0 432,348 4/9/2020
14.1.0 74,333 10/2/2019
14.0.0 40,999 5/20/2019
12.3.0 115,582 11/6/2018
12.2.0 88,740 6/12/2018
12.1.1 4,439 5/10/2018
12.1.0 3,915 4/25/2018
12.0.0 16,198 3/21/2018
Loading failed

Version 22.0: New Chromium rendering engine (Chromium 154), running out of process: the ExpertPdf.HtmlToPdf.NetCore.Chromium.Windows and ExpertPdf.HtmlToPdf.Chromium.Windows packages; RenderingEngine.Chromium. Blink rendering engine updated to Chromium 148, with more robust launching under load (BlinkEngineLaunchTimeout, BlinkEngineLaunchMaxTries, BlinkMaxThreadPoolWorkers). Tagged (accessible) PDF and PDF/UA-1: PdfConverter.Tagged and Language, PdfTagType, alternate and actual text, artifacts. PDF/A-2b, PDF/A-3b, PDF/A-3u and PDF/A-3a (PdfStandardSubset); associated files (Document.AddAssociatedFile). ZUGFeRD 2.x / Factur-X electronic invoices: Document.AddZugferdInvoice (Minimum to Extended and XRechnung profiles). New options: HttpPostParameters, SecureProtocol, RenderElementSelector, PageRanges, WindowStatus, EnableOfflineMode, WebGlEnabled, AllowContentHeightResize. Bookmarks, internal links and HTML elements mapping on the Blink and Chromium engines. ManagedContentTrimming: with the Chromium engine the last page ends where the content ends. MaxConversionTime: a time limit for one conversion, on every engine. Asynchronous methods with cancellation: GetPdfBytesFromUrlAsync, SavePdfFromUrlToFileAsync and more. Table of contents with page numbers and links (Document.InsertTableOfContents), page labels and named destinations.