itext7.pdfhtml 5.0.4

Prefix Reserved
dotnet add package itext7.pdfhtml --version 5.0.4                
NuGet\Install-Package itext7.pdfhtml -Version 5.0.4                
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.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add itext7.pdfhtml --version 5.0.4                
#r "nuget: itext7.pdfhtml, 5.0.4"                
#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.4

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

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 (37)

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

Package Downloads



Package Description


Add new date helpers to generate pdf




SRTECH has created a package library for Asp.Net & Asp.Net Core developers that provides a comprehensive set of tools to simplify the development process. This package library offers a wide range of packages that developers can use to develop notification alerts, cache memory, local preferences, create and manage sessions and cookies, handle emails (using both SMTP and Microsoft Graph API), create/read/delete files, generate random numbers and names, read and write QR codes, convert HTML body to PDF files, create Excel sheets from data tables, and encrypt and decrypt data for protection. The use of these packages can help developers save a significant amount of time and effort in coding and testing these functionalities from scratch. The packages have been designed to provide optimized and secure implementations of these functionalities, which can help improve the overall quality of the application.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.0.4 78,107 4/30/2024
5.0.3 135,134 2/7/2024
5.0.2 223,996 10/25/2023
5.0.1 184,577 8/2/2023
5.0.0 198,587 5/10/2023
4.0.5 629,726 1/16/2023
4.0.4 411,439 10/25/2022
4.0.3 450,711 7/5/2022
4.0.2 346,698 4/11/2022
4.0.1 634,945 1/11/2022
4.0.0 286,706 10/25/2021
3.0.5 797,649 7/5/2021
3.0.4 360,485 4/13/2021
3.0.3 309,246 1/14/2021
3.0.2 195,789 10/22/2020
3.0.1 181,612 7/23/2020
3.0.0 428,780 4/20/2020
2.1.7 161,266 2/13/2020
2.1.6 189,089 12/2/2019
2.1.5 109,467 9/19/2019
2.1.4 85,733 7/11/2019
2.1.3 387,356 4/25/2019
2.1.2 76,554 2/7/2019
2.1.1 124,889 10/25/2018
2.1.0 96,237 8/29/2018
2.0.2 73,250 4/27/2018
2.0.1 30,341 1/31/2018
2.0.0 13,072 12/4/2017
1.0.5 9,174 8/29/2018
1.0.4 1,688 4/27/2018
1.0.3 1,643 1/31/2018
1.0.2 5,199 10/31/2017
1.0.1 7,741 7/27/2017
1.0.1-netstandard 1,509 7/27/2017 5,292 3/21/2017
1.0.0 1,766 2/16/2017