Skip to content

24 ways to impress your friends

Vote down?

Stephen Holdaway

I’m curious that the open source software wkhtmltopdf hasn’t been mentioned for converting HTML to PDF. It is a command line tool, but it’s very straight forward to use and is incredibly powerful.

I’ve used wkhtmltopdf to generate invoices, packing slips, and multi-page documents that were originally designed in desktop publishing programs with no compromises. Additionally, being WebKit based, JavaScript can be used to alter documents before they are rendered to PDF.