There are a few options, for simple PDFs try TCPDF (similar to FPDF, but has full UTF-8 support), you need to program the text output here, but you can use some basic markup for tables. Another option is rendering using Webkit browser engine into PDF from HTML, you need to install software on the server for this but it works fantastically and you have full CSS3. http://code.google.com/p/wkhtmltopdf/wiki/compilation

Recent we have had success with a Zend framework module for loading MS Word Documents in using 'mail merge' fields to insert data, and then rendering these as PDF. See http://www.phplivedocx.org/articles/pdf-generation-with-zend-framework/ This has the benefit of allowing clients to edit their own templates for the created documents.

-Stig

Brendan Brink wrote, On 7/10/2010 3:52 PM:
Hi there,

Just wondering what the consensus was on the easiest way to convert a
webpage to a PDF (one thats generated via PHP)...

wanting to auto generate pdf documents to customers based on their
account data which i can then either attach to email or provide as a
downloadable file through their account.

much appreciated...

i have heard that it is a lot of effort to create pdf files on the
fly, but thought there must be a simple script or library out there
that would be easy and simple to use

Cheers

Brendan.


--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to