Re: Converting HTML to PDF via PHP

From: Date: Thu, 05 Aug 2010 16:05:17 +0000
Subject: Re: Converting HTML to PDF via PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-307324@lists.php.net to get a copy of this message
> I am trying to export generated HTML (an invoice for a customer) to a saveable > PDF that is downloaded. Any ideas? I've found a very easy unix command for generating PDF's: code.google.com/p/wkhtmltopdf [The PHP list wouldn't let me send this with "http://" in front of the URL.] It will turn any web page into a PDF and was easy to install and use and has documentation. (I call it from a PHP script.) It renders the web page using a WebKit library that's included in the source, and there are lots of options for how to tweak the rendering engine. Scott

« previous php.general (#307324) next »