HiQPdf.Next.HtmlToPdf
18.0.0
Prefix Reserved
dotnet add package HiQPdf.Next.HtmlToPdf --version 18.0.0
NuGet\Install-Package HiQPdf.Next.HtmlToPdf -Version 18.0.0
<PackageReference Include="HiQPdf.Next.HtmlToPdf" Version="18.0.0" />
<PackageVersion Include="HiQPdf.Next.HtmlToPdf" Version="18.0.0" />
<PackageReference Include="HiQPdf.Next.HtmlToPdf" />
paket add HiQPdf.Next.HtmlToPdf --version 18.0.0
#r "nuget: HiQPdf.Next.HtmlToPdf, 18.0.0"
#:package HiQPdf.Next.HtmlToPdf@18.0.0
#addin nuget:?package=HiQPdf.Next.HtmlToPdf&version=18.0.0
#tool nuget:?package=HiQPdf.Next.HtmlToPdf&version=18.0.0
HiQPdf Next HTML to PDF Converter for .NET (Multi-platform)
HiQPdf Next HTML to PDF for .NET | PDF Library for .NET | HiQPdf Software | Free Trial | Licensing | Support
Overview
HiQPdf Next HTML to PDF Converter for .NET is a core component of the HiQPdf Next Library for .NET, using an advanced, highly accurate and reliable Chromium-based rendering engine to process modern and complex HTML, CSS and JavaScript content in compliance with the latest standards.
The converter targets .NET Standard 2.0 and can be used in .NET Core and .NET Framework applications deployed on Windows and Linux platforms, including Azure App Service, Azure Functions and Docker.
This is a multi-platform metapackage that references both the Windows x64 and Linux x64 HiQPdf Next HTML to PDF runtimes.
On Windows platforms, the runtime generally does not require additional dependencies. On Linux platforms, installing some dependency packages might be required, depending on the Linux distribution and version, as described in the online documentation.
Package structure
HiQPdf Next for .NET has a modular architecture, with separate NuGet packages for each major component to prevent unnecessary files from being included in your applications.
This package is a multi-platform metapackage that references both the Windows x64 and Linux x64 HTML to PDF runtime packages. It is ideal when developing on one operating system and deploying to multiple runtime environments.
If you need a single-platform package, you can use HiQPdf.Next.HtmlToPdf.Windows or HiQPdf.Next.HtmlToPdf.Linux.
Compatibility
The compatibility list of this multi-platform package includes the following platforms:
- Windows 10, 11 and Windows Server 2016 to 2025
- Linux x64 distributions
- .NET 10.0, 9.0, 8.0, 7.0, 6.0 and .NET Standard 2.0
- .NET Framework 4.6.2 to 4.8.1
- Azure App Service and Azure Functions
- Virtual Machines
- Docker containers
- Web, Console and Desktop applications
Main Features
- Convert HTML with CSS, web fonts and JavaScript to PDF
- Support modern web standards and technologies
- Add page numbering in PDF headers and footers from HTML
- Repeat HTML table headers and footers in PDF pages
- Control PDF page breaks with CSS in HTML
- Create outlines and tables of contents from heading tags
- Convert specific HTML regions
- Retrieve HTML element positions in the PDF
- Create tagged PDFs for accessibility
- Trigger conversion automatically or manually
- Render for screen or print media types
- Set PDF security, viewer settings and signatures
- Set HTTP headers and cookies
- Use GET and POST requests
- Convert HTML to JPEG, PNG and WebP images
- Convert SVG to PDF
- Asynchronous methods for async and await
Installation
On Windows platforms, the HiQPdf Next runtime generally does not require the installation of additional dependencies.
On Linux platforms, the HTML to PDF Converter component may require the installation of additional system dependencies, depending on the Linux distribution and version used.
Detailed instructions for installing Linux dependencies are available in the online documentation, in the Getting Started and Publish guides.
Install the package using your preferred NuGet package manager.
Related packages
HTML to PDF Converter packages
HiQPdf.Next.HtmlToPdf (Multi-platform):
https://www.nuget.org/packages/HiQPdf.Next.HtmlToPdfHiQPdf.Next.HtmlToPdf.Windows (Windows x64):
https://www.nuget.org/packages/HiQPdf.Next.HtmlToPdf.WindowsHiQPdf.Next.HtmlToPdf.Linux (Linux x64):
https://www.nuget.org/packages/HiQPdf.Next.HtmlToPdf.Linux
Full library packages
HiQPdf.Next (Multi-platform):
https://www.nuget.org/packages/HiQPdf.NextHiQPdf.Next.Windows (Windows x64):
https://www.nuget.org/packages/HiQPdf.Next.WindowsHiQPdf.Next.Linux (Linux x64):
https://www.nuget.org/packages/HiQPdf.Next.Linux
Other HiQPdf.Next component packages
Core PDF API (create, edit, merge and secure PDF documents):
https://www.nuget.org/packages/HiQPdf.Next.CoreWord to PDF:
https://www.nuget.org/packages/HiQPdf.Next.WordToPdf.AddOnExcel to PDF:
https://www.nuget.org/packages/HiQPdf.Next.ExcelToPdf.AddOnRTF to PDF:
https://www.nuget.org/packages/HiQPdf.Next.RtfToPdf.AddOnMarkdown to PDF:
https://www.nuget.org/packages/HiQPdf.Next.MarkdownToPdf.AddOnPDF Processor (PDF to text, PDF to images, extract images):
https://www.nuget.org/packages/HiQPdf.Next.PdfProcessor
HiQPdf.Next namespace
All components of the HiQPdf Next for .NET library share the same namespace HiQPdf.Next and can be used together in the same application.
To use the library in your own code, add the following using directive at the top of your C# source file:
using HiQPdf.Next;
Getting Started
For documentation and code samples, please visit: https://www.hiqpdf.com/hiqpdf-next-html-to-pdf-dotnet
You can copy the C# code lines from the section below to create a PDF document from a web page or from an HTML string and save the resulting PDF to a memory buffer for further processing, to a PDF file or send it to the browser for download in ASP.NET applications.
C# Code Samples
To convert a HTML string or an URL to a PDF file you can use the C# code below.
// Create the HTML to PDF converter object
HtmlToPdf converter = new HtmlToPdf();
// Convert the HTML code to a PDF file
converter.ConvertHtmlToFile("<b>Hello World</b> from HiQPdf !", null, "html_to_file.pdf");
// Convert the HTML page from URL to a PDF file
string urlToConvert = "http://www.hiqpdf.com";
converter.ConvertUrlToFile(urlToConvert, "url_to_file.pdf");
To convert a HTML string or an URL to a PDF document in a memory buffer and then save it to a file you can use the C# code below.
// Create the HTML to PDF converter object
HtmlToPdf converter = new HtmlToPdf();
// Convert the HTML code to memory
byte[] htmlToPdfData = converter.ConvertHtmlToMemory("<b>Hello World</b> from HiQPdf !", null);
// Save the PDF data to a file
System.IO.File.WriteAllBytes("html_to_memory.pdf", htmlToPdfData);
// Convert the HTML page from URL to memory
string urlToConvert = "http://www.hiqpdf.com";
byte[] urlToPdfData = converter.ConvertUrlToMemory(urlToConvert);
// Save the PDF data to a file
System.IO.File.WriteAllBytes("url_to_memory.pdf", urlToPdfData);
To convert in your ASP.NET Core applications a HTML string or an URL to a PDF document in a memory buffer and then send it for download to browser you can use the C# code below.
// Create the HTML to PDF converter object
HtmlToPdf converter = new HtmlToPdf();
// Convert the HTML code to memory
byte[] htmlToPdfData = converter.ConvertHtmlToMemory("<b>Hello World</b> from HiQPdf !", null);
FileResult fileResult = new FileContentResult(htmlToPdfData, "application/pdf");
fileResult.FileDownloadName = "html_to_pdf.pdf";
return fileResult;
Free Trial
You can download the HiQPdf Next for .NET evaluation package from HiQPdf Downloads page of the website.
The evaluation package contains a demo ASP.NET application with full C# code for all features of the library.
You can evaluate the library for free as long as it is needed to ensure that the solution fits your application needs.
Licensing
The HiQPdf Software licenses are perpetual which means they never expire for a version of the product and include free maintenance for the first year. You can find more details about licensing on the website.
Support
For technical and sales questions or for general inquiries about our software and company you can contact us using the email addresses from the contact page of the website.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- HiQPdf.Next.HtmlToPdf.Linux (>= 18.0.0)
- HiQPdf.Next.HtmlToPdf.Windows (>= 18.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 18.0.0 | 29 | 12/24/2025 |
