top of page

Groupe de Magali D Rojas

Public·7 membres
Groin Sorokin
Groin Sorokin

HiQPdf HTML to PDF Converter for .NET: The Fastest and Most Precise HTML to PDF Conversion Technology


HiQPdf HTML to PDF Converter for .NET v10.17.0: A Comprehensive Review




If you are looking for a simple, fast, flexible and powerful tool to create PDF documents from HTML pages in your ASP.NET Core Web Applications or in your desktop applications with just a few lines of C# or VB.NET code, then you should consider HiQPdf HTML to PDF Converter for .NET v10.17.0.




HiQPdf HTML to PDF Converter for .NET v10.17.0



In this article, we will review the features, benefits and usage of this library, which offers you a modern and precise HTML to PDF conversion technology with support for all modern HTML5, CSS3, SVG and WebFonts features.


What is HiQPdf HTML to PDF Converter for .NET?




HiQPdf HTML to PDF Converter for .NET is a key component of the HiQPdf Library for .NET and .NET Core, which is a complete PDF library that you can use to create new PDF documents, edit existing PDF documents, fill and submit PDF forms, merge and split PDF documents, extract text and images from PDF documents, search text in PDF documents, rasterize PDF pages to images, convert PDF to HTML or print PDF documents.


The HTML to PDF converter can convert any HTML document or URL that a modern browser can display, preserving all the CSS styles and executing all the JavaScript scripts found in the HTML document. You can easily design a document in HTML with CSS3, JavaScript, SVG or Canvas and then convert it to PDF preserving the exact content and style.


Why use HiQPdf HTML to PDF Converter for .NET?




There are many reasons why you might want to use HiQPdf HTML to PDF Converter for .NET in your applications. Here are some of them:



  • You want to generate reports, invoices, receipts, certificates, tickets or other documents from dynamic data in your applications.



  • You want to create PDF versions of your web pages or online content for offline viewing or printing.



  • You want to archive or backup your web pages or online content in a portable and secure format.



  • You want to share or distribute your web pages or online content with other users or clients who might not have access to the original source.



  • You want to create interactive forms or surveys that can be filled and submitted online or offline.



  • You want to create rich and stylish PDF documents with complex layouts, graphics, fonts and colors.



Features of HiQPdf HTML to PDF Converter for .NET




HiQPdf HTML to PDF Converter for .NET offers you a wide range of features that allow you to create high quality PDF documents from HTML pages. Here are some of the main features:


HTML to PDF conversion





  • Convert any HTML document or URL that a modern browser can display.



  • Preserve all the CSS styles and execute all the JavaScript scripts found in the HTML document.



  • Convert only a selected region of the HTML document or overlap multiple HTML documents in the same PDF.



  • Control the page breaks in PDF with page-break CSS attributes in HTML.



  • Automatically generate a table of contents with bookmarks from the headings in the HTML document.



  • Create internal and external links in the PDF document from the hyperlinks in the HTML document.



  • Retrieve complete information about the HTML elements rendered in PDF.



HTML to SVG and HTML to Image conversion





  • Convert any HTML document or URL that a modern browser can display to SVG vector image or transparent PNG image.



  • Preserve all the CSS styles and execute all the JavaScript scripts found in the HTML document.



  • Convert only a selected region of the HTML document or overlap multiple HTML documents in the same image.



  • Control the resolution and quality of the output image.



PDF creation and editing





  • Create new PDF documents from scratch with text, images, shapes, tables, barcodes and more.



  • Edit existing PDF documents by adding new objects or removing existing objects.



  • Merge multiple PDF documents into a single one or split a single one into multiple ones.



  • Rasterize PDF pages to images or convert them to SVG vector images.



  • Extract text and images from PDF pages or search text in them.



PDF forms and security





  • Create interactive forms with text fields, checkboxes, radio buttons, drop-down lists, buttons and more.



  • Fill existing forms with data from your applications or submit them online or offline.



  • Encrypt and decrypt PDF documents with passwords or certificates.



  • Add digital signatures to PDF documents with certificates.



Benefits of HiQPdf HTML to PDF Converter for .NET




Besides its rich features, HiQPdf HTML to PDF Converter for .NET also offers you some important benefits that make it stand out from other similar products. Here are some of them:


Fast and precise conversion technology




The library uses an amazingly fast and precise rendering engine that can convert any complex web page into a high quality PDF document. The engine is based on WebKit browser engine which is used by Google Chrome browser so you can expect accurate results that match what you see on screen.


Support for modern web standards




The library supports all modern web standards such as HTML5, CSS3, SVG and WebFonts so you can use them freely in your web pages without worrying about compatibility issues. You can also use advanced features such as JavaScript frameworks (jQuery, AngularJS etc.), Canvas graphics, SVG vector graphics and WebFonts fonts (Google Fonts etc.) in your web pages.


No external dependencies




The library does not depend on any external software such as browsers, printer drivers or viewers so you don't need to install anything else on your server or client machines. The library is packaged as a Zip archive that you can simply copy on your server without changing any configuration settings. The library works both on 32-bit and 64-bit Windows machines without any difference.


Flexible licensing and pricing




The library offers flexible licensing options that suit your needs. You can license it per developer without paying any royalties for using it in your applications. You can also choose between different editions depending on your requirements such as Standard Edition (for basic features), Professional Edition (for advanced features) or Server Edition (for unlimited conversions). The library also offers convenient prices that are affordable for any budget size. You can also benefit from discounts if you purchase multiple licenses or renew your subscription annually.


How to use HiQPdf HTML to PDF Converter for .NET




If you are interested in using HiQPdf HTML to PDF Converter for .NET in your applications, here are some steps that you need to follow:


Installation and deployment





  • Download the Zip archive containing the library from https://www.hiqpdf.com/download.



  • Extract the Zip archive on your server machine where you want to use it.



  • Add a reference to the HiQPdf.dll assembly file located in Bin folder of extracted archive in your Visual Studio project.



  • If you want to deploy it on another machine than where you installed it , simply copy Bin folder along with your application files without changing anything else.



Code examples in C# and VB.NET




The library provides a simple and intuitive API that you can use in C# or VB.NET to convert HTML to PDF. Here are some code examples that show how to use the library in different scenarios:


Convert a HTML string to a PDF document




This example shows how to convert a HTML string to a PDF document and save it to a file.


```csharp // create the HTML to PDF converter HtmlToPdf htmlToPdfConverter = new HtmlToPdf(); // set a demo serial number htmlToPdfConverter.SerialNumber = "demo"; // convert HTML to PDF byte[] pdfBuffer = htmlToPdfConverter.ConvertHtmlToMemory("Hello World


", null); // write the PDF document to a file File.WriteAllBytes("HelloWorld.pdf", pdfBuffer); ``` ```vbnet ' create the HTML to PDF converter Dim htmlToPdfConverter As HtmlToPdf = New HtmlToPdf() ' set a demo serial number htmlToPdfConverter.SerialNumber = "demo" ' convert HTML to PDF Dim pdfBuffer As Byte() = htmlToPdfConverter.ConvertHtmlToMemory("Hello World


", Nothing) ' write the PDF document to a file File.WriteAllBytes("HelloWorld.pdf", pdfBuffer) ``` Convert a URL to a PDF document




This example shows how to convert a URL to a PDF document and save it to a file.


```csharp // create the HTML to PDF converter HtmlToPdf htmlToPdfConverter = new HtmlToPdf(); // set a demo serial number htmlToPdfConverter.SerialNumber = "demo"; // convert URL to PDF byte[] pdfBuffer = htmlToPdfConverter.ConvertUrlToMemory("https://www.hiqpdf.com"); // write the PDF document to a file File.WriteAllBytes("HiQPdf.pdf", pdfBuffer); ``` ```vbnet ' create the HTML to PDF converter Dim htmlToPdfConverter As HtmlToPdf = New HtmlToPdf() ' set a demo serial number htmlToPdfConverter.SerialNumber = "demo" ' convert URL to PDF Dim pdfBuffer As Byte() = htmlToPdfConverter.ConvertUrlToMemory("https://www.hiqpdf.com") ' write the PDF document to a file File.WriteAllBytes("HiQPdf.pdf", pdfBuffer) ``` Convert only a selected region of a HTML page to a PDF document




This example shows how to convert only a selected region of a HTML page to a PDF document by using CSS selectors.


```csharp // create the HTML to PDF converter HtmlToPdf htmlToPdfConverter = new HtmlToPdf(); // set a demo serial number htmlToPdfConverter.SerialNumber = "demo"; // set the CSS selector for the region to convert htmlToPdfConverter.ConversionOptions.HtmlElementsMappingOptions.HtmlElementSelectors = new string[] "#content" ; // convert URL to PDF byte[] pdfBuffer = htmlToPdfConverter.ConvertUrlToMemory("https://www.hiqpdf.com/demo/ConvertHtmlElement.aspx"); // write the PDF document to a file File.WriteAllBytes("Content.pdf", pdfBuffer); ``` ```vbnet ' create the HTML to PDF converter Dim htmlToPdfConverter As HtmlToPdf = New HtmlToPdf() ' set a demo serial number htmlToPdfConverter.SerialNumber = "demo" ' set the CSS selector for the region to convert htmlToPdfConverter.ConversionOptions.HtmlElementsMappingOptions.HtmlElementSelectors = New String() "#content" ' convert URL to PDF Dim pdfBuffer As Byte() = htmlToPdfConverter.ConvertUrlToMemory("https://www.hiqpdf.com/demo/ConvertHtmlElement.aspx") ' write the PDF document to a file File.WriteAllBytes("Content.pdf", pdfBuffer) ``` Overlap multiple HTML documents in the same PDF document




This example shows how to overlap multiple HTML documents in the same PDF document by using transparency and z-index CSS properties.


```csharp // create the HTML to PDF converter HtmlToPdf htmlToPdfConverter = new HtmlToPdf(); // set a demo serial number htmlToPdfConverter.SerialNumber = "demo"; // create an empty PDF document where to add HTML pages Document pdfDocument = new Document(); // add an empty page where to add HTML pages as layers pdfDocument.AddPage(); // add first layer with background color and text HtmlLayout backgroundLayerLayoutInfo = null; try // convert first layer HTML color name and text byte[] backgroundLayerBuffer = htmlToPdfConverter.ConvertHtml( "" + "HiQPdf HTML To PDF Converter" + "", null); // add first layer from buffer with default layout options backgroundLayerLayoutInfo = pdfDocument.Pages[0].Layout(backgroundLayerBuffer); finally // dispose the converter used for first layer htmlToPdfConverter.Dispose(); // add second layer with transparent background and text HtmlLayout transparentLayerLayoutInfo = null; try // create another converter for second layer htmlToPdfConverter = new HtmlToPdf(); // set another demo serial number htmlToPdfConverter.SerialNumber = "demo"; // make second layer transparent htmlToPdfConverter.ConversionOptions.TransparentBackground = true; // convert second layer HTML text with transparent background byte[] transparentLayerBuffer = htmlToPdfConverter.ConvertHtml( "Transparent Layer Over Background Layer", null); // add second layer from buffer on top of first layer using same layout options as first layer transparentLayerLayoutInfo = pdfDocument.Pages[0].Layout(transparentLayerBuffer, backgroundLayerLayoutInfo.LayoutOptions); finally // dispose the converter used for second layer htmlToPdfConverter.Dispose(); // save the overlapped layers in same PDF document try // write the final document buffer to a file byte[] outBuffer = pdfDocument.WriteToMemory(); File.WriteAllBytes("OverlappedLayers.pdf", outBuffer); finally // close the document pdfDocument.Close(); ``` ```vbnet ' create the HTML to PDF converter Dim htmlToPdfConverter As HtmlToPdf = New HtmlToPdf() ' set a demo serial number htmlToPdfConverter.SerialNumber = "demo" ' create an empty PDF document where to add HTML pages Dim pdfDocument As Document = New Document() ' add an empty page where to add HTML pages as layers pdfDocument.AddPage() ' add first layer with background color and text Dim backgroundLayerLayoutInfo As HtmlLayout = Nothing Try ' convert first layer HTML color name and text Dim backgroundLayerBuffer As Byte() = htmlToPdfConverter.ConvertHtml( "" + "HiQPdf HTML To PDF Converter" + "", Nothing) ' add first layer from buffer with default layout options backgroundLayerLayoutInfo = pdfDocument.Pages(0).Layout(backgroundLayerBuffer) Finally ' dispose the converter used for first layer htmlToPdfConverter.Dispose() End Try ' add second layer with transparent background and text Dim transparentLayerLayoutInfo As HtmlLayout = Nothing Try ' create another converter for second layer htmlToPdfConverter = New HtmlToPdf() ' set another demo serial number htmlToPdfConverter.SerialNumber = "demo" ' make second layer transparent htmlToPdfConverter.ConversionOptions.TransparentBackground = True ' convert second layer HTML text with transparent background Dim transparentLayerBuffer As Byte() = htmlToPdfConverter.ConvertHtml( "Transparent Layer Over Background Layer", Nothing) ' add second layer from buffer on top of first layer using same layout options as first layer transparentLayerLayoutInfo = pdfDocument.Pages(0).Layout(transparentLayerBuffer, backgroundLayerLayoutInfo.LayoutOptions) Finally ' dispose the converter used for second layer htmlToPdfConverter.Dispose() End Try ' save the overlapped layers in same PDF document Try ' write the final document buffer to a file Dim outBuffer As Byte() = pdfDocument.WriteToMemory() File.WriteAllBytes("OverlappedLayers.pdf", outBuffer) Finally pdfDocument.Close() End Try ``` Documentation and support




The library comes with a comprehensive documentation that covers all the features and options of the library. You can find the documentation online at https://www.hiqpdf.com/documentation or download it as a PDF file from https://www.hiqpdf.com/download.


If you have any questions or issues with the library, you can contact the support team by email at support@hiqpdf.com or by using the contact form on https://www.hiqpdf.com/contact. The support team is friendly and responsive and will help you solve any problem you might encounter.


Conclusion




In conclusion, HiQPdf HTML to PDF Converter for .NET v10.17.0 is a powerful and versatile tool that allows you to create PDF documents from HTML pages in your ASP.NET Core Web Applications or in your desktop applications with just a few lines of C# or VB.NET code. It offers you a fast and precise HTML to PDF conversion technology with support for all modern web standards, a complete PDF library for creating and editing PDF documents, and flexible licensing and pricing options.


If you want to try it for yourself, you can download a free trial version from https://www.hiqpdf.com/download and use it for 60 days without any limitation. You can also purchase a license from https://www.hiqpdf.com/order and enjoy unlimited conversions and free updates for one year.


Don't hesitate to give HiQPdf HTML to PDF Converter for .NET v10.17.0 a try and see how it can help you create high quality PDF documents from HTML pages in your applications.


FAQs




Here are some frequently asked questions about HiQPdf HTML to PDF Converter for .NET v10.17.0:



  • What are the system requirements for using the library?



The library can be used on any Windows machine that supports .NET Framework 2.0, 4.0 and later, .NET Core 2.0 and later, .NET Standard 2.0 and later and .NET 6 and later. The library works both on 32-bit and 64-bit Windows machines without any difference.


  • How can I get a free trial license?



You can download a free trial version from https://www.hiqpdf.com/download and use it for 60 days without any limitation. The trial version has a demo serial number that you need to set in your code before using the library.


  • How can I purchase a license?



You can purchase a license from https://www.hiqpdf.com/order by choosing the edition and the number of licenses that suit your needs. You can pay securely online with credit card or PayPal or by bank transfer or check. After purchasing a license, you will receive an email with your serial number that you need to set in your code instead of the demo serial number.


  • What are the differences between the editions?



The library has three editions: Standard Edition, Professional Edition and Server Edition. The Standard Edition offers basic features such as HTML to PDF conversion, PDF creation and editing, PDF forms and security. The Professional Edition offers advanced features such as HTML to SVG and HTML to Image conversion, PDF to HTML conversion, PDF to Text conversion, PDF to Image extraction, Text Search in PDF, PDF Printing etc. The Server Edition offers unlimited conversions on a single server machine.


  • How can I customize the conversion options?



The library provides a ConversionOptions property that allows you to customize various aspects of the conversion process such as page size, margins, orientation, header and footer, web fonts loading mode, JavaScript execution mode, transparent background mode etc. You can also use CSS media queries or page-break CSS


À propos

Bienvenue dans le groupe ! Vous pouvez communiquer avec d'au...

membres

bottom of page