News for hackers. Stuff that matters.
Re:Wkhtmltopdf, shell utility to convert html to pdf using w... by pbhjpbhj on Monday April 16, 2012 @08:32AM (#3847058)
Why bother with the intermediate stage and not go direct html-to-png?
Re:Wkhtmltopdf, shell utility to convert html to pdf using w... by mike-cardwell on Monday April 16, 2012 @09:00AM (#3847147)
Originally because I didn't find a free app which would do that. Then I decided to keep the PDF as it was quite useful. Unlike with the PNG, the HTML links were retained in the PDF. Ie, HTML anchor tags are still clickable in PDFs generated by wkhtmltopdf.

EDIT: A PDF will also let you select text, unlike an image. However, an image is nicer to embed in a webpage. So I utilised both in order to get the best of both worlds.

Re:Wkhtmltopdf, shell utility to convert html to pdf using w... by blakeeb on Monday April 16, 2012 @10:39AM (#3847519)
Oops just noticed this comment. See my other comment (wkhtmltoimage is part of the package, allows you to render HTML+CSS into PNG, compile into x64 and place binary in your git repo directory to use on heroku)