HiQPdf 19.0.0
Prefix Reserveddotnet add package HiQPdf --version 19.0.0
NuGet\Install-Package HiQPdf -Version 19.0.0
<PackageReference Include="HiQPdf" Version="19.0.0" />
<PackageVersion Include="HiQPdf" Version="19.0.0" />
<PackageReference Include="HiQPdf" />
paket add HiQPdf --version 19.0.0
#r "nuget: HiQPdf, 19.0.0"
#:package HiQPdf@19.0.0
#addin nuget:?package=HiQPdf&version=19.0.0
#tool nuget:?package=HiQPdf&version=19.0.0
HiQPdf Library for .NET (Classic)
PDF Library for .NET | HTML to PDF for .NET | Free Trial Download | Licensing
Overview
HiQPdf Library for .NET (Classic) is a fast and flexible tool for creating high-quality PDF documents and converting HTML to PDF in .NET Framework, .NET Core and .NET Standard applications on Windows.
The library uses the Classic rendering engine to convert HTML to PDF, images and SVG.
You can also create, stamp, secure, merge and split PDF documents, extract text and images from PDF documents, search text in PDF documents, convert PDF pages to images or HTML.
This package is compatible with .NET Framework, .NET Core and .NET Standard 2.0 on Windows platforms.
HiQPdf Next for Windows, Linux and macOS
For applications that run on Windows, Linux or macOS, HiQPdf Next for .NET offers a newer, highly accurate Chromium-based rendering engine designed for modern HTML, CSS and JavaScript content.
HiQPdf Next targets .NET Standard 2.0 and can be used in .NET Core and .NET Framework applications deployed on Windows, Linux and macOS, including Azure, AWS, Google Cloud, Docker and Kubernetes.
Each platform has its own NuGet package. The multi-platform packages install the Windows x64 and Linux x64 runtimes. The platform packages can be referenced on their own or alongside them.
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.Windows.Arm64 (Windows ARM64)
https://www.nuget.org/packages/HiQPdf.Next.HtmlToPdf.Windows.Arm64HiQPdf.Next.HtmlToPdf.Linux (Linux x64)
https://www.nuget.org/packages/HiQPdf.Next.HtmlToPdf.LinuxHiQPdf.Next.HtmlToPdf.Linux.Arm64 (Linux ARM64)
https://www.nuget.org/packages/HiQPdf.Next.HtmlToPdf.Linux.Arm64HiQPdf.Next.HtmlToPdf.MacOS (macOS ARM64)
https://www.nuget.org/packages/HiQPdf.Next.HtmlToPdf.MacOS
Full library packages
The full library can also create, edit and merge PDF documents, convert Word, Excel, RTF and Markdown to PDF, extract text and images from PDFs, search text in PDFs and convert PDF pages to images.
HiQPdf.Next (Multi-platform)
https://www.nuget.org/packages/HiQPdf.NextHiQPdf.Next.Windows (Windows x64)
https://www.nuget.org/packages/HiQPdf.Next.WindowsHiQPdf.Next.Windows.Arm64 (Windows ARM64)
https://www.nuget.org/packages/HiQPdf.Next.Windows.Arm64HiQPdf.Next.Linux (Linux x64)
https://www.nuget.org/packages/HiQPdf.Next.LinuxHiQPdf.Next.Linux.Arm64 (Linux ARM64)
https://www.nuget.org/packages/HiQPdf.Next.Linux.Arm64HiQPdf.Next.MacOS (macOS ARM64)
https://www.nuget.org/packages/HiQPdf.Next.MacOS
Migrating from Classic to Next
The Classic to Next migration guide on the HiQPdf website describes what changes when an HTML to PDF integration moves to HiQPdf Next: the packages, the namespace and the serial number, the page sizing model and the headers and footers described as HTML. The guide also maps the Classic options to their Next equivalents.
The HiQPdf.Next.Compat.Classic package runs the code written for the Classic library on the Next platform. It keeps the HiQPdf namespace and the Classic classes, so an existing application can move to Next with few source code changes and then adopt the native Next API gradually.
Library Features
- HTML to PDF Converter to quickly create high-accuracy PDF documents from HTML content with advanced support for CSS, JavaScript, Web Fonts and SVG. The converter can automatically create a table of contents, bookmarks and internal links from the HTML document structure
- HTML to Image Converter to take snapshots of web pages and produce raster images in various formats like PNG, JPG, BMP
- HTML to SVG Converter to create high-quality vector images in SVG format from HTML
- PDF to Image Converter allows you to rasterize PDF document pages to images and produce a separate image for each PDF page or to create a multi-page TIFF image for the entire PDF document
- PDF to HTML Converter offers the possibility to create HTML documents from PDF pages and also to produce an index file for the entire document
- PDF to Text Converter can extract the text from PDF documents with various options like preserving the original text order or the reading order, marking the page breaks with special characters
- Search text in PDF documents functionality allows you to search and highlight text in PDF document pages
- Extract images from PDF to get the images embedded in PDF documents while preserving transparency
- Create PDF Documents in a classic manner laying out PDF objects like text, HTML, SVG, images and graphics to an empty document
- Security and Digital Signatures feature allows you to create encrypted, password-protected and digitally signed PDF documents
- Interactive Features like PDF forms, text notes, internal links, JavaScript actions
- Merge PDF feature allows you to combine multiple PDF documents into a single one
- Stamp PDF to apply repeating HTML, text or image content on each PDF page of a PDF document
Compatibility
The compatibility list includes the following .NET versions, platforms and application types:
- .NET Framework 4.0 and above
- .NET 10, 9, 8, 7, 6
- .NET Standard 2.0
- Windows platforms
- Azure Cloud Services and Azure Virtual Machines
- Web, Console and Desktop applications
Installation
Install the package using your preferred NuGet package manager or with the .NET CLI:
dotnet add package HiQPdf
In .NET Framework projects that use packages.config, the package can be installed from the Package Manager Console:
Install-Package HiQPdf
The package references the HiQPdf.dll assembly in .NET Framework projects and the HiQPdf.NetCore.dll assembly in .NET Core projects. The HiQPdf.dep and HiQPdf.rda files of the library are copied automatically next to the assembly in the output folder of the application, are included when the application is published and must be deployed together with the assembly.
Start Using HiQPdf
You can start by copying the C# code below into your application or you can start with our demo applications for .NET from downloadable product packages.
C# Code Samples for HTML to PDF
The C# code samples below show how to quickly produce PDF documents from HTML pages or HTML code and save the resulting PDF to a memory buffer, to a PDF file or send it to the browser for download when created in ASP.NET applications.
At the top of your C# source file you have to add the using HiQPdf; instruction to make available the HiQPdf namespace to your application code.
using HiQPdf;
You can use the C# code below to convert an HTML code or an HTML page from a given URL to a PDF file.
// 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 = "https://www.hiqpdf.com";
converter.ConvertUrlToFile(urlToConvert, "url_to_file.pdf");
Alternatively you can produce the PDF document in a memory buffer that you can further save to a file on the server.
// 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 = "https://www.hiqpdf.com";
byte[] urlToPdfData = converter.ConvertUrlToMemory(urlToConvert);
// Save the PDF data to a file
System.IO.File.WriteAllBytes("url_to_memory.pdf", urlToPdfData);
The C# code below can be used in your ASP.NET Core and ASP.NET MVC application for .NET Framework to convert an HTML code to PDF in a memory buffer and then send the PDF data for download to the browser.
// 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;
The C# code below can be used in your ASP.NET Web Forms application for .NET Framework to convert an HTML code to PDF in a memory buffer and then send the PDF data for download to the browser.
// 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);
HttpResponse httpResponse = HttpContext.Current.Response;
httpResponse.AddHeader("Content-Type", "application/pdf");
httpResponse.AddHeader("Content-Disposition",
String.Format("attachment; filename=html_to_pdf.pdf; size={0}",
htmlToPdfData.Length.ToString()));
httpResponse.BinaryWrite(htmlToPdfData);
httpResponse.End();
The C# code below can be used in your ASP.NET Core application to convert an HTML code to PDF in a memory buffer and then send the PDF data for download to the browser.
// 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 Download
You can download the HiQPdf Library for .NET evaluation package from HiQPdf Downloads web page.
The evaluation package for .NET contains the product binaries and demo web, desktop and console projects with full C# code for .NET Framework and .NET Core.
Licensing
The licensing model is simple and flexible. The licenses are perpetual and there is no limit for the number of machines where you can deploy your applications using the HiQPdf library. You can find more details about licensing on Online Purchase web page.
Set the serial number on the converter object before the conversion:
converter.SerialNumber = "your-serial-number";
Without a serial number the converter runs in evaluation mode.
Support
For support and questions please use the email addresses from the contact web page.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | 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. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.0
- No dependencies.
-
.NETFramework 4.6.1
- No dependencies.
-
.NETStandard 2.0
- System.Drawing.Common (>= 5.0.3)
- System.Security.Principal.Windows (>= 5.0.0)
- System.Text.Encoding.CodePages (>= 5.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on HiQPdf:
| Package | Downloads |
|---|---|
|
SSExports
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
