Convert HTML to PDF in C# using this Docotic.Pdf add-on. Your C# HTML to PDF conversion will produce the pixel-perfect PDF because the add-on uses Chromium during rendering. You get the same web standards compliance as in Google Chrome (R). Use the add-on to convert HTML to PDF in the C# code of your .NET Core, ASP.NET, Windows Forms, WPF, Xamarin, or Blazor application. The add-on supports .NET 10 - .NET 5, .NET Core 2.0+ and .NET Framework 4.6.1+. You can use the add-on on Windows, Linux, and macOS. It works in Azure and AWS cloud environments and can be used from a Docker container. This HTML to PDF converter provides an async API for C# and VB.NET. You can convert HTML strings and files, SVG images, and HTML with CSS and scripts. You can also specify header and footer templates. The add-on includes advanced capabilities such as converting password-protected URLs, ignoring SSL errors, and delaying the start of conversion. Find an overview of the HTML to PDF capabilities of this C# library at https://bitmiracle.com/pdf-library/html-pdf/ To explore Docotic.Pdf features beyond HTML‑to‑PDF conversion, visit https://bitmiracle.com/pdf-library/help Core library NuGet package: https://www.nuget.org/packages/BitMiracle.Docotic.Pdf/ This is a prerelease version with the newest features and latest bug fixes. We have tested it for regressions, and is safe to use in a production environment.
$ dotnet add package BitMiracle.Docotic.Pdf.HtmlToPdfConvert HTML to PDF in C# using this Docotic.Pdf add-on. Your C# HTML to PDF conversion will produce the pixel-perfect PDF because the add-on uses Chromium during rendering. You get the same web standards compliance as in Google Chrome ®.
Use the add-on to convert HTML to PDF in the C# code of your .NET Core, ASP.NET, Windows Forms, WPF, Xamarin, or Blazor application.
This HTML to PDF converter provides an async API for C# and VB.NET. You can convert HTML strings and files, SVG images, and HTML with CSS and scripts. You can also specify header and footer templates.
The add-on includes advanced capabilities such as converting password-protected URLs, ignoring SSL errors, and delaying the start of conversion.
Core library NuGet package: https://www.nuget.org/packages/BitMiracle.Docotic.Pdf/
For practical examples that show how to convert HTML to PDF using the Docotic.Pdf library and the HtmlToPdf add‑on, see the HTML to PDF sample group on GitHub.
The samples demonstrate a variety of conversion scenarios, including:
To explore Docotic.Pdf features beyond HTML‑to‑PDF conversion, visit the Docotic.Pdf help page.
To test the library, request a free time-limited license key using the form on the Docotic.Pdf page.
Without a license, the library will not create or read PDF documents.
We offer royalty-free licenses for Docotic.Pdf. Eligible projects and individuals can receive a license for the C# PDF library at no cost.