|
With the new HiQPdf Chromium HTML to PDF Converter for .NET you can now convert the most sophisticated HTML pages to PDF
without losing formatting on Windows and Linux platforms.
The converter can also be used without restrictions in Azure App Service and Azure Functions environments,
both on Windows and Linux.
|
|
The .NET library targets .NET Standard 2.0, which makes it compatible with a wide range of .NET Core and .NET Framework
applications. The .NET library is the same for Windows and Linux, but there are different native Chromium
runtimes for the two platforms. The .NET library and the native runtimes are bundled and distributed as NuGet packages,
which makes the installation and deployment extremely easy.
|
|
Getting Started
|
|
The online documentation
contains Getting Started guides for Windows, Linux, Azure App Service and Azure Functions with
detailed instructions for software integration in your application and complete C# examples for each
important feature of the library.
|
|
HiQPdf Chromium Library for .NET inherited most of the API from the classic HiQPdf Library for .NET, but it also
comes with some specific changes necessary to naturally adapt to the capabilities of the new rendering engine.
You can see the current capabilities of the library by checking the
online demo application for this new library
and the API reference the online documentation.
|
|
You can also download a free trial package for .NET, which contains
the Visual Studio project for the ASP.NET demo application with complete C# source code. On Windows platforms
you can simply build and run the application from Visual Studio.
Running the demo application on Linux requires following some steps that are described in detail in the
documentation and also involve installing some dependency packages. After the Linux environment is prepared,
you can publish the application on the Linux machine.
|
|
Instead of using our demo application, you can create your own ASP.NET project for .NET Core in Visual Studio.
For Windows deployments it is not necessary to have any special setup
and you can add a reference to HiQPdf.Chromium.Windows NuGet Package.
If you want to publish your application on Linux, you should first follow the steps from documentation to configure
the Linux machine for running the application and then add a reference to
HiQPdf.Chromium.Linux NuGet Package.
Use the simple code below to convert an URL to a PDF document you can save into a file or send it for download in browser.
|
|
// Create the HTML to PDF converter object
HtmlToPdf converter = new HtmlToPdf();
// Convert the HTML code to memory
string urlToConvert = "http://www.hiqpdf.com";
byte[] urlToPdfData = converter.ConvertUrlToMemory(urlToConvert);
FileResult fileResult = new FileContentResult(urlToPdfData, "application/pdf");
fileResult.FileDownloadName = "url_to_pdf.pdf";
return fileResult;
|
|
|
|
HiQPdf Chromium for .NET offers advanced options for converting HTML to PDF and HTML to images. The library is 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.
|
|
|
Support for Cutting-Edge HTML, CSS and JavaScript Features
|
Using Chromium as the rendering engine ensures that the latest
modern HTML, CSS, and JavaScript features are supported by the converter in conformance
with the latest standards and technologies.
|
|
|
|
Available on Both Windows and Linux Platforms
|
HiQPdf Chromium for .NET can run on both Windows 64-bit and Linux 64-bit platforms.
There are different NuGet packages for Windows and Linux, including the same .NET library but with different
native runtimes. For Windows, the minimum required version is Windows 10 or Windows Server 2016.
|
|
|
|
Built for .NET Standard 2.0 for Maximum Compatibility
|
The .NET library targets .NET Standard 2.0, making it compatible
with a wide range of .NET Core and .NET Framework applications. It is compatible with
.NET Core 8.0, 7.0, 6.0, 5.0 and .NET Framework versions from 4.6.2 to 4.8.1.
|
|
|
|
Fully Compatible with Azure App Service and Azure Functions on Both Windows and Linux
|
The converter can run without restrictions in your Azure App Service and Azure Functions
.NET Core applications targeting both Windows and Linux platforms. Web fonts and other features are fully supported
by HiQPdf Chromium for .NET.
Online documentation offers detailed usage instructions for Azure applications targeting both Windows and Linux.
|
|
|
|
NuGet Packages for Windows and Linux
|
HiQPdf Chromium for .NET is delivered as NuGet packages for Windows and Linux.
The packages include the .NET Standard 2.0 library, the same for both platforms,
and the specific native runtime for each platform.
|
|
|
|
ASP.NET Core Demo Application with C# Code for All Features
|
The zip package that can be downloaded from the website contains
the Visual Studio project for the ASP.NET Core demo application with C# sample code
for all major library features.
|
|
|
|
Simple and Flexible Licensing with a Single License for All Libraries
|
The license for HiQPdf Chromium for .NET works with both the
classic HiQPdf Library for .NET and the multi-platform client-server solution.
There are no additional runtime or deployment costs charged for using our software
component in your applications.
|
|
|