News for hackers. Stuff that matters.
Re:Ask HN: Best way to programtically convert html -- pdf by stevekemp on Thursday January 10, 2013 @04:24AM (#5036130)
A lot of this will come down to your environment, if you can use PDFLib, etc.

Me? When I needed this last for generating printable/downloadable invoices in PDF I used the system binaries "html2ps" & "ps2pdf". Not ideal. But certainly good enough.

Re:Ask HN: Best way to programtically convert html -- pdf by zrail on Wednesday January 09, 2013 @09:54PM (#5035082)
The very best way to convert HTML to PDF is using PrinceXML[0]. It's a commercial product but by all accounts it is completely worth the money.

[0]: http://www.princexml.com/

Re:Ask HN: Best way to programtically convert html -- pdf by strick on Thursday January 10, 2013 @09:03AM (#5036862)
I've used htmldoc http://www.htmldoc.org/ for this and it has worked well for simple pages.
Re:Ask HN: Best way to programtically convert html -- pdf by danielwozniak on Wednesday January 09, 2013 @09:08PM (#5034897)
Re:Ask HN: Best way to programtically convert html -- pdf by datr on Thursday January 10, 2013 @05:02AM (#5036228)
wkhtmltopdf (http://code.google.com/p/wkhtmltopdf/) is a cool little project which uses the webkit rendering engine to generate the pdf.