Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Syncfusion.HtmlToPdfConverter.AspNet --version                
NuGet\Install-Package Syncfusion.HtmlToPdfConverter.AspNet -Version                
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="Syncfusion.HtmlToPdfConverter.AspNet" Version="" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Syncfusion.HtmlToPdfConverter.AspNet --version                
#r "nuget: Syncfusion.HtmlToPdfConverter.AspNet,"                
#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 Syncfusion.HtmlToPdfConverter.AspNet as a Cake Addin
#addin nuget:?package=Syncfusion.HtmlToPdfConverter.AspNet&version=

// Install Syncfusion.HtmlToPdfConverter.AspNet as a Cake Tool
#tool nuget:?package=Syncfusion.HtmlToPdfConverter.AspNet&version=                

Syncfusion .NET HTML to PDF converter

The Syncfusion HTML to PDF converter is a .NET Framework library that converts URLs, HTML string, SVG, MHTML to PDF in ASP.NET application. This converter uses the advanced Blink rendering engine, thus generating pixel-perfect PDF from HTML or URL.

NET HTML to PDF converter

Features overview | Docs | API Reference | Online Demo | Blogs | Support | Forums | Feedback

Key Features

  • Converts any webpage to PDF.
  • Converts any raw HTML string to PDF.
  • Prevents text and image split across pages.
  • Converts HTML form to fillable PDF form.
  • Works both in 32-bit and 64-bit environments.
  • Automatically creates Table of Contents.
  • Automatically creates bookmark hierarchy.
  • Converts only a part of the web page to PDF.
  • Supports header and footer.
  • Repeats HTML table header and footer in PDF.
  • Supports HTML5, CSS3, SVG, and Web fonts.
  • Converts any HTML to SVG.
  • Converts any HTML to image.
  • Converts any SVG to image.
  • Supports accessing HTML page using both HTTP POST and GET methods.
  • Supports HTTP cookies.
  • Supports cookies-based form authentication.
  • Thread safe.
  • Supports internal and external hyperlinks.
  • Sets document properties, page settings, security, viewer preferences, etc.
  • Protects PDF document with password and permission.

System Requirements

Getting Started

Install the Syncfusion.HtmlToPdfConverter.AspNet NuGet package as reference to your ASP.NET application from

Convert HTML to PDF document programmatically using C#

//Initialize the HTML to PDF converter.
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
//Convert URL to PDF.
PdfDocument document = htmlConverter.Convert("");
//Save and close the PDF document. 
 //Close the document


This NuGet package includes code from the Chromium Project. This code is subject to the terms of the Chromium Project license available here. Syncfusion does not provide any warranty or any indemnity with regard to the use of code from the Chromium Project. If you do not agree to these terms, please do not install, or use this NuGet package.

About Syncfusion

Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion has more than 27,000+ customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.

Today, we provide 1700+ components and frameworks for web (Blazor, Flutter, ASP.NET Core, ASP.NET MVC, ASP.NET Web Forms, JavaScript, Angular, React, Vue, and jQuery), mobile (.NET MAUI (Preview), Flutter, Xamarin, UWP, and JavaScript), and desktop development (WinForms, WPF, WinUI, .NET MAUI (Preview), Flutter, Xamarin, and UWP). We provide ready-to-deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software. | | Toll Free: 1-888-9 DOTNET

Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 is compatible.  net452 was computed.  net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 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
22.1.34 8,152 6/21/2023
21.2.10 2,487 6/12/2023
21.2.9 3,887 6/6/2023
21.2.8 1,796 5/30/2023
21.2.6 1,729 5/22/2023
21.2.5 2,094 5/15/2023
21.2.4 1,877 5/9/2023
21.2.3 1,615 5/3/2023
21.1.41 2,084 4/19/2023
21.1.39 2,335 4/10/2023
21.1.38 2,038 4/3/2023
21.1.37 2,083 3/29/2023
21.1.35 2,457 3/23/2023 1,976 3/13/2023 5,095 3/7/2023 1,776 2/28/2023 2,096 2/21/2023 1,860 2/14/2023 2,044 1/18/2023 2,240 1/10/2023 1,969 1/4/2023 1,717 12/29/2022 1,711 12/28/2022 1,803 12/21/2022 2,286 12/12/2022 1,563 12/6/2022 1,654 11/29/2022 1,655 11/22/2022 1,884 11/15/2022 1,727 11/8/2022 1,762 10/27/2022 1,875 10/18/2022 1,807 10/11/2022 2,869 10/5/2022 4,013 9/29/2022