WKHTMLTOPDF

WKHTMLTOPDF is a command-line utility that converts HTML content into PDF documents. It uses a headless browser engine to render the page first, so styling and layout carry over faithfully. Developers often embed it in larger applications to generate invoices, reports, and other printable documents automatically.