NYCPHP Meetup

[nycphp-talk] html to PDF conversion?

Gary Mort garyamort at gmail.com
Fri Mar 5 11:23:52 EST 2010


On Fri, Mar 5, 2010 at 11:06 AM, David Roth <davidalanroth at gmail.com> wrote:
>
> I found something interesting. I used wget to get the HTML and then fed it
> through wkhtmltopdf. The PDF looked OK, then I noticed in the help you can
> do wkhtmltopdf website.com website.pdf, so I thought why not let the
> program do the whole thing. To my surprise the output looked even better!
> When wkhtmltopdf is getting the web page it performs some magic to create
> the PDF properly.


I would guess that it uses the print stylesheet as opposed to the web
stylesheet by default.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20100305/7596a94f/attachment.html>


More information about the talk mailing list