We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

HTML to PDF Overview

The Syncfusion HTML to PDF converter is a .NET library for converting web pages, 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, texts, 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.

General Information

Powerful and Comprehensive API

The comprehensive API makes it possible to convert richly formatted HTML strings or webpages to PDF.

Blazing Fast Performance

Optimized for usage in a server environment where speed and low memory usage are critical.

Fully Documented

The Syncfusion .NET HTML to PDF converter includes extensive documentation, a knowledge base, and samples.

HTML to PDF Conversion

Convert HTML to PDF files

Convert HTML to PDF files in C#

The Syncfusion .NET HTML to PDF converter allows you to convert URLs, HTML5, CSS, CSS3, and HTML to PDF with just five lines of C# code.

Partial webpage to PDF

Partial webpage to PDF

A part of a webpage can be converted to PDF based on the HTML tag ID.

Preserves Format

Preserves format

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.

JavaScript Execution

JavaScript execution

HTML can be converted to PDF with or without JavaScript execution during conversion.


Hyperlinks can be toggled based on your requirements when converting HTML to PDF documents.

HTML Form to PDF Form

HTML form to PDF form

Convert a HTML form to PDF form by preserving exact position, size, and appearance. In addition, it preserves value of the HTML form fields.



Bookmarks are created automatically in the PDF document based on the HTML heading tags from <h1> to <h6>.

Table of Contents

Table of contents

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 Authentication

Windows authentication

Windows-authenticated webpages can be converted to PDF with a username and password in the converter.

Form Authentication

Form authentication

Form-authenticated webpages can be converted to PDF by using cookies in the converter settings.

Token-based Authentication

Token-based authentication

Token-based authenticated webpages can be converted to PDF by using bearer tokens in the converter’s HTTP request header.

Media Type

Media type

The .NET HTML to PDF converter supports both screen and print media types in conversion using C#.

Viewport Customization

Viewport customization

Convert HTML to PDF based on your desired viewport size.



System and manual proxy settings are available to convert HTML to PDF using C#.

Offline Conversion

Offline conversion

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 Comparison

Feature IE WebKit Blink
Convert a webpage to PDF in C# Yes Yes Yes
Convert HTML string to PDF in C# Yes Yes Yes
Convert partial webpage to PDF Yes
Toggle JavaScript execution during conversion Yes Yes Yes
Hyperlinks Yes Yes Yes
Page breaks Yes Yes Yes
Handle text and images split across pages Yes Yes Yes
Header and footer Yes Yes Yes
Repeat HTML table header/footer Yes Works only with print media
Viewport Yes Yes
HTML5/CSS3 Render as Bitmap Yes Yes
Windows authentication Yes Yes Yes
Form authentication Yes Yes
Token-based authentication Yes Yes
Offline conversion Yes Yes
Additional delay Yes Yes Yes
Auto create bookmarks Yes
Auto create table of contents Yes
Print media type Yes Yes
HTML form to PDF form Yes Yes
HTTP get and post Yes Yes
System proxy Yes Yes Yes
Manual proxy Yes
HTML to single PDF page Yes Yes Yes
Layout result (height of HTML content) Yes Yes Yes
Window status Yes Yes
HTML to image Yes Yes Yes
SVG to PDF Render as Bitmap Yes Yes
Page settings Yes Yes Yes
Document protection Yes Yes Yes
ActiveX plugin Yes Yes Yes
Watermarks Yes Yes Yes


File Formats
Developer Platform
Unlimited Global License

Developer Platform

Essential Studio

$ 2,495

/developer 1st year

Includes 1000+ Controls
Best Value

Unlimited Global License

Cover everyone in your organization for one low annual fee


File Formats

$ 995

/developer 1st year

  • 60+ Controls each for JavaScript, Angular, Blazor, React, and Vue.
  • 75+ ASP.NET Web Forms Controls
  • 65+ ASP.NET MVC Controls
  • 65+ ASP.NET Core Controls
  • File Formats (Word, Excel, PowerPoint and PDF) Tool tip information icon
  • 135+ Xamarin Controls *Includes iOS, Android and UWP
  • 100+ WinForms Controls
  • 90+ WPF Controls
  • 70+ UWP Controls
  • 55+ PHP Controls
  • 55+ JSP Controls
  • Predictive Analytics
Data Platform
  • Dashboard Platform
  • Big Data Platform
  • Report Platform
  • Data Integration Platform
  • Dedicated Account Representative
  • Quarterly product releases
  • Support within 24 hours on all business days
  • Licensing Management Portal
  • Commercial Use
  • Max Developer count
  • 1 per license
  • Coverage Period
  • 1 year
File Formats
Developer Platform
Unlimited Global License



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.

CONTINUE READING View all Customer Stories


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.


Succinctly Series: Statistics Using Excel Succinctly

Succinctly Series: Statistics Using Excel Succinctly

- by Charles Zaiontz


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.

Syncfusion Awards
Scroll up icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon