Skip to content
Angelo Belchior edited this page Dec 18, 2024 · 5 revisions

Html2Pdf Logo

.NET NuGet version (Html2Pdf.Lib)

The best tool to convert HTML to PDF in .NET

Html2Pdf.Lib is an Open Source library with an MIT license that converts an HTML file into a PDF file.

This library was built using wkhtmltopdf, which is a command-line tool for converting HTML files to PDFs using the QT Webkit rendering engine.

No secret: The C# code simply calls the wkhtmltopdf executable and passes the necessary parameters. It's that simple:

wkhtmltopdf -q --margin-bottom 10 --margin-left 10 --margin-right 10 --margin-top
Clone this wiki locally