Re: Converting HTML to PDF via PHP

[email protected] (Scott Teresi)
Newsgroups php.general
Message-ID <C880597D.49DC9%[email protected]>
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.