-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Angelo Belchior edited this page Dec 18, 2024
·
5 revisions
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