BitMiracle.Docotic.Pdf.HtmlToPdf
9.8.19581-dev
Prefix Reserved
dotnet add package BitMiracle.Docotic.Pdf.HtmlToPdf --version 9.8.19581-dev
NuGet\Install-Package BitMiracle.Docotic.Pdf.HtmlToPdf -Version 9.8.19581-dev
<PackageReference Include="BitMiracle.Docotic.Pdf.HtmlToPdf" Version="9.8.19581-dev" />
<PackageVersion Include="BitMiracle.Docotic.Pdf.HtmlToPdf" Version="9.8.19581-dev" />
<PackageReference Include="BitMiracle.Docotic.Pdf.HtmlToPdf" />
paket add BitMiracle.Docotic.Pdf.HtmlToPdf --version 9.8.19581-dev
#r "nuget: BitMiracle.Docotic.Pdf.HtmlToPdf, 9.8.19581-dev"
#:package BitMiracle.Docotic.Pdf.HtmlToPdf@9.8.19581-dev
#addin nuget:?package=BitMiracle.Docotic.Pdf.HtmlToPdf&version=9.8.19581-dev&prerelease
#tool nuget:?package=BitMiracle.Docotic.Pdf.HtmlToPdf&version=9.8.19581-dev&prerelease
HTML to PDF add-on for the Docotic.Pdf library
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 ®.
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.
Core library NuGet package: https://www.nuget.org/packages/BitMiracle.Docotic.Pdf/
Articles about HTML to PDF conversion
Sample code
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:
- Converting HTML strings, files, and URLs in Windows Forms, WPF, ASP.NET, and console applications
- Delaying conversion until scripts finish or a specified delay elapses
- Customizing headers and footers
- Working with protected pages
- Converting ASPX to PDF
- Converting XML to PDF
- Adding HTML to an existing PDF
To explore Docotic.Pdf features beyond HTML‑to‑PDF conversion, visit the Docotic.Pdf help page.
Licenses
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.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- BitMiracle.Docotic.Pdf (= 9.8.19581-dev)
- Microsoft.Bcl.AsyncInterfaces (>= 8.0.0)
- System.Text.Json (>= 8.0.5)
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 |
|---|---|---|
| 9.8.19581-dev | 26 | 2/15/2026 |
| 9.8.19414-dev | 93 | 1/18/2026 |
| 9.8.19386-dev | 94 | 1/7/2026 |
| 9.8.19385-dev | 87 | 1/6/2026 |
| 9.8.19310-dev | 93 | 12/29/2025 |
| 9.8.19204-dev | 282 | 12/18/2025 |
| 9.8.19180-dev | 264 | 12/17/2025 |
| 9.8.19048-dev | 421 | 11/19/2025 |
| 9.8.19020-dev | 7,576 | 11/12/2025 |
| 9.8.18986-dev | 200 | 11/3/2025 |
| 9.8.18914-dev | 150 | 10/17/2025 |
| 9.8.18872-dev | 15,422 | 10/9/2025 |
| 9.8.18852-dev | 185 | 10/6/2025 |
| 9.8.18725-dev | 322 | 9/18/2025 |
| 9.8.18712-dev | 197 | 9/11/2025 |
| 9.8.18708-dev | 193 | 9/10/2025 |
| 9.8.18702-dev | 198 | 9/4/2025 |
| 9.8.18697-dev | 241 | 8/28/2025 |
| 9.8.18634 | 13,346 | 8/5/2025 |