The HTML-to-PDF converter is a .NET library for converting webpages, SVG, MHTML, and HTML files to PDF using C#. It uses popular rendering engines such as Internet Explorer (IE), WebKit, and Blink (Google Chrome). It is reliable and accurate. The result preserves all graphics, images, text, fonts, and the layout of the original HTML document or webpage.
Our HTML-to-PDF converter will work seamlessly in various platforms like Azure Cloud or web apps, Azure functions, Amazon Web Service (AWS), Docker, WinForms, WPF, ASP.NET MVC, ASP.NET Core with Windows, Linux, and MacOS.
To test the accuracy of HTML-to-PDF conversion in .NET using C#, try our online demo.
The comprehensive API makes it possible to convert richly formatted HTML strings or webpages to PDF.
Optimized for usage in a server environment where speed and low memory usage are critical.
The .NET HTML-to-PDF converter includes extensive documentation, a knowledge base, and samples.
The .NET HTML-to-PDF converter allows you to convert URLs, HTML5, CSS, CSS3, and HTML to PDF with just five lines of C# code.
A part of a webpage can be converted to PDF based on the HTML tag ID.
The PDF will look just like the webpage you converted. It preserves all graphics, images, text, fonts, links, and the layout of the original HTML document or webpage.
HTML can be converted to PDF with or without JavaScript execution during conversion.
Hyperlinks can be toggled when converting HTML to PDF documents.
Convert an HTML form to a PDF form and preserve its exact position, size, and appearance. In addition, preserve the values of the HTML form fields.
Bookmarks are created automatically in the PDF document based on the HTML heading tags from <h1> to <h6>.
A table of contents will be created automatically in the PDF document based on the HTML heading tags from <h1> to <h6> with default styles. You can also apply custom styles to the table of contents.
Windows-authenticated webpages can be converted to PDF with a username and password in the converter.
Form-authenticated webpages can be converted to PDF by using cookies in the converter settings.
Token-based authenticated webpages can be converted to PDF by using bearer tokens in the converter’s HTTP request header.
The .NET HTML-to-PDF converter supports both screen and print media types in conversion using C#.
Convert HTML to PDF based on your desired viewport size.
System and manual proxy settings are available to convert HTML to PDF using C#.
Convert HTML to PDF with the available offline data by ignoring the online resources.
SVG files or SVG elements in HTML can also be converted to PDF.
Feature | IE | WebKit | Blink |
---|---|---|---|
Convert a webpage to PDF in C# | ![]() |
![]() |
![]() |
Convert HTML string to PDF in C# | ![]() |
![]() |
![]() |
Convert partial webpage to PDF | ![]() |
![]() |
|
Toggle JavaScript execution during conversion | ![]() |
![]() |
![]() |
Hyperlinks | ![]() |
![]() |
![]() |
Page breaks | ![]() |
![]() |
![]() |
Handle text and images split across pages | ![]() |
![]() |
![]() |
Header and footer | ![]() |
![]() |
![]() |
Repeat HTML table header/footer | ![]() |
Works only with print media | |
Viewport | ![]() |
![]() |
|
HTML5/CSS3 | Render as Bitmap | ![]() |
![]() |
Windows authentication | ![]() |
![]() |
![]() |
Form authentication | ![]() |
![]() |
|
Token-based authentication | ![]() |
![]() |
|
Offline conversion | ![]() |
![]() |
|
Additional delay | ![]() |
![]() |
![]() |
Auto create bookmarks | ![]() |
![]() |
|
Auto create table of contents | ![]() |
![]() |
|
Print media type | ![]() |
![]() |
|
HTML form to PDF form | ![]() |
![]() |
![]() |
HTTP get and post | ![]() |
![]() |
|
System proxy | ![]() |
![]() |
![]() |
Manual proxy | ![]() |
![]() |
|
HTML to single PDF page | ![]() |
![]() |
![]() |
Layout result (height of HTML content) | ![]() |
![]() |
![]() |
Window status | ![]() |
![]() |
|
HTML to image | ![]() |
![]() |
![]() |
HTML to SVG | ![]() |
||
HTML to MHTML | ![]() |
||
SVG to PDF | Render as Bitmap | ![]() |
![]() |
Page settings | ![]() |
![]() |
![]() |
Document protection | ![]() |
![]() |
![]() |
ActiveX plugin | ![]() |
![]() |
![]() |
Watermarks | ![]() |
![]() |
![]() |
Essential Studio
/developer 1st year
/developer 1st year
CASE STUDY
Syncfusion’s file format components helped me create the reports I needed, fast. – J. Pereira, Software Developer.
The libraries have been built from scratch and refined for more than a decade to provide blazing-fast performance, comprehensive API, and compatibility across the latest and older versions of these files.
VIDEOS
Syncfusion File Format Libraries - Manipulate Excel, Word, PowerPoint, and PDF files
Read and write Excel, Word, PDF, and PowerPoint files. Also includes integrated visualization capabilities. Advanced features include support for pivot tables, pivot charts, mail-merge, and extensive formatting.
E-BOOK
Succinctly Series: Statistics Using Excel Succinctly
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.