HTML to PDF features
You can convert HTML to PDF using the Docotic.Pdf library. Check the resources mentioned on this page to find out how to create beautiful PDFs from your data.
You would need the HTML to PDF add-on for HTML to PDF conversions. This is a free add-on for the Docotic.Pdf library. The add-on is also available in the zip file with library binaries.
9.3.16943-dev 9.3.16943-dev14,638 passed Total NuGet downloads 4,145,451
API reference
On our site, we provide the API reference for the HTML to PDF add-on.
Articles
Read the following to know more about HTML to PDF conversion in C# and VB.NET code.
Convert HTML to PDF in C# and VB.NET
Contains C# HTML to PDF conversion code that shows how to generate PDF in C# and VB.NET from HTML code with CSS styles.Convert HTML to PDF in Azure Functions
How to convert HTML to PDF in Azure Functions and Azure App Services with .NET Core in Windows and Linux.
Sample code
Check the sample code that shows how to convert HTML to PDF documents in C# and VB.NET.
HTML to PDF conversion in console app
Use asynchronous-only HTML to PDF API in regular synchronous and modern asynchronous console applications.HTML to PDF conversion in Windows Forms app
Use HTML to PDF API from an async event handler or another async method in a Windows Forms application.HTML to PDF conversion in WPF app
Shows how to use HTML to PDF API in a WPF application.Convert local HTML to PDF
Use a file or a string with an HTML code. For example, some auto-generated or user-generated HTML. It is possible to specify a base URL.Convert HTML to PDF after a script run
Run a script after the page is loaded but before it is converted. For example, to toggle elements, or to make dynamic content loading happen.Convert URL to PDF ignoring SSL errors
Shows how to convert pages with self-signed or otherwise untrusted certificates that cause SSL errors.Convert password-protected URL to PDF
Specify user name and password for the URL in the authentication options.Convert HTML to PDF with delay
Delay an HTML to PDF conversion to convert a page that executes a script after loading or otherwise updates itself.Convert HTML to PDF with header and footer
Specify header and footer templates when converting HTML to PDF.Convert HTML to PDF with margins and custom scaling
Use options to specify scaling factor and set up margins in the output PDF.Convert HTML and put it over existing PDF content
Produce transparent PDF pages from HTML and combine the result with existing PDF pages.SVG to PDF
Convert SVG images to PDF using the HTML to PDF add-on.