itext7.pdfhtml 5.0.1

The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved
dotnet add package itext7.pdfhtml --version 5.0.1
NuGet\Install-Package itext7.pdfhtml -Version 5.0.1
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="itext7.pdfhtml" Version="5.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add itext7.pdfhtml --version 5.0.1
#r "nuget: itext7.pdfhtml, 5.0.1"
#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.
// Install itext7.pdfhtml as a Cake Addin
#addin nuget:?package=itext7.pdfhtml&version=5.0.1

// Install itext7.pdfhtml as a Cake Tool
#tool nuget:?package=itext7.pdfhtml&version=5.0.1

pdfHTML is an iText add-on that allows you to easily convert HTML and CSS into standards compliant PDFs that are accessible, searchable and usable for indexing.

With just few lines of code you can use pdfHTML to get great results in no time.

In addition to simply converting HTML to PDF, you can also use pdfHTML to generate well-formatted, well-structured PDF documents such as reports, invoices etc. using HTML as a template format. You can define styling with CSS and pdfHTML provides the engine for PDF conversion. It re-uses the structural information from the HTML to easily create PDF/A, PDF/UA, or Tagged PDFs. There is no need to know the technical details of the PDF format. pdfHTML utilizes semantic and structural information already present in the HTML and CSS and maps them to iText objects and styles.


pdfHTML provides a convenience API which allows you to convert HTML to PDF files or to a list of iText elements. This gives you full control over how to parse and insert the HTML elements. When using pdfHTML to convert HTML to PDF you will realize another great advantage. Semantic and structural information contained in the HTML files is an excellent source for pdfHTML to convert the HTML files into rich, smart PDF documents.


  • Leverage HTML flexibility in PDF o Convert HTML5 and CSS3 to PDF o The conversion is customizable, dynamic and simple through an easy to use API o SVG support
  • Conversion options o Convert a full document to PDF directly o Convert an HTML snippet to "iText building blocks", e.g. an HTML rich text paragraph into an iText Paragraph object.
  • Customizable o Add dynamic content to your PDF such as barcodes. o Leverage converter properties and custom processing of tags to fine-tune your conversion.
  • Use the structural and semantic information from HTML to create standards-compliant PDF documents like PDF/A, PDF/UA or Tagged PDFs.

Visit our knowledge base to find code samples, manuals, documentation and a book.

You can also find its API here.

Try our code in our developer sandbox or use our free apps, all in our iText Demo Lab.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (26)

Showing the top 5 NuGet packages that depend on itext7.pdfhtml:

Package Downloads



Package Description


Add new date helpers to generate pdf




Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.0.1 35,413 8/2/2023
5.0.0 87,794 5/10/2023
4.0.5 321,880 1/16/2023
4.0.4 227,951 10/25/2022
4.0.3 321,545 7/5/2022
4.0.2 252,554 4/11/2022
4.0.1 388,103 1/11/2022
4.0.0 236,413 10/25/2021
3.0.5 593,689 7/5/2021
3.0.4 311,582 4/13/2021
3.0.3 247,894 1/14/2021
3.0.2 175,217 10/22/2020
3.0.1 158,027 7/23/2020
3.0.0 383,813 4/20/2020
2.1.7 141,365 2/13/2020
2.1.6 157,628 12/2/2019
2.1.5 96,287 9/19/2019
2.1.4 78,169 7/11/2019
2.1.3 375,187 4/25/2019
2.1.2 70,000 2/7/2019
2.1.1 119,147 10/25/2018
2.1.0 92,959 8/29/2018
2.0.2 64,657 4/27/2018
2.0.1 28,218 1/31/2018
2.0.0 12,093 12/4/2017
1.0.5 6,080 8/29/2018
1.0.4 1,612 4/27/2018
1.0.3 1,550 1/31/2018
1.0.2 4,093 10/31/2017
1.0.1 7,279 7/27/2017
1.0.1-netstandard 1,316 7/27/2017 5,205 3/21/2017
1.0.0 1,539 2/16/2017