HiQPdf.Chromium.Windows 16.4.1

Prefix Reserved
dotnet add package HiQPdf.Chromium.Windows --version 16.4.1                
NuGet\Install-Package HiQPdf.Chromium.Windows -Version 16.4.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="HiQPdf.Chromium.Windows" Version="16.4.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HiQPdf.Chromium.Windows --version 16.4.1                
#r "nuget: HiQPdf.Chromium.Windows, 16.4.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 HiQPdf.Chromium.Windows as a Cake Addin
#addin nuget:?package=HiQPdf.Chromium.Windows&version=16.4.1

// Install HiQPdf.Chromium.Windows as a Cake Tool
#tool nuget:?package=HiQPdf.Chromium.Windows&version=16.4.1                

HiQPdf Chromium for .NET

HiQPdf Logo Image

HiQPdf Chromium for .NET | HiQPdf Software | Free Trial Download | Licensing

HiQPdf Chromium for .NET offers you a modern, fast, flexible and powerful tool to create complex and stylish PDF documents in .NET applications with just a few lines of C# code using the integrated HTML to PDF Converter component.

The HTML to PDF converter uses Chromium as rendering engine which can render all the modern HTML, CSS and JavaScript in conformance with the latest standards and technologies.

The library is much more than just a HTML to PDF converter. It can also be used to automatically generate the PDF document outline with bookmarks, set the security permissions, password protect and digitally sign the generated PDF document.

The .NET library is built for .NET Standard 2.0 which makes compatible with a wide range of .NET Core and .NET Framework versions. The native runtime is compatible with Windows 64-bit platforms.

This package can be used in Azure App Service and Azure Functions applications for Windows platform.

For Linux platforms there is a separate package containing the same .NET library and the native runtime for Linux.

Library Features

  • Convert complex HTML with CSS, SVG, Web Fonts and JavaScript to PDF
  • Support for the latest HTML and JavaScript technologies and standards
  • Use HTML templates to create headers and footers in PDF with page numbers
  • Automatically repeat HTML tables headers and footers in PDF pages
  • Control PDF page breaks with CSS attributes in HTML
  • Use HTML heading tags to create the PDF document outline and table of contents
  • Create tagged PDFs to support the accessibility features
  • Trigger conversion automatically or manually from JavaScript code
  • Control the media type to render for screen or for print mode
  • Control the PDF document display with PDF viewer preferences
  • Create secured and digitally signed PDF documents
  • Set HTTP headers when requesting the HTML page
  • Set cookies when requesting the HTML page
  • Use HTTP GET or POST requests to access the HTML page
  • Convert HTML pages that require authentication
  • Convert HTML to JPEG, PNG and WEBP image formats

Compatible Platforms

The package is compatible with a wide range of Windows platforms including:

  • Windows 10, Windows Server 2016 64-bit and above
  • .NET Core 8.0, 7.0, 6.0, 5.0, .NET Standard 2.0
  • .NET Framework 4.6.2 up to .NET Framework 4.8.1
  • Azure App Service and Azure Functions for Windows
  • Azure Cloud Services, Azure Windows Virtual Machines
  • Web, Desktop and Console applications for .NET

Start Using HiQPdf

You can start by copying the C# code below in your application or you can start with our demo applications for .NET Core from downloadable product package.

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 resulted PDF to a memory buffer, to a PDF file or send it to browser for download when created in ASP.NET Core applications.

At the top of your C# source file you have to add the using HiQPdf.Chromium; instruction to make available the HiQPdf namespace to your application code.

// Include the HiQPdf namespace at the top of your C# file
using HiQPdf.Chromium;

You can use the C# code below to convert a HTML code or a 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 = "http://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 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 = "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);

The C# code below can be used in your ASP.NET Core applications to convert a HTML code to PDF in a memory buffer and then send the PDF data for download to 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 a free trial package for .NET Core from HiQPdf Downloads web page.

The free trial package for .NET Core contains an ASP.NET Core demo application with C# code for all library features.

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.

Support

For support and questions please use the email addresses from the contact web page.

Product 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. 
.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 net461 was computed.  net462 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
16.4.1 344 12/21/2024