View Single Post
Old 24th June 2007, 03:10 PM   #9 (permalink)
MRobinson
Senior Member
 
MRobinson's Avatar
 
Join Date: Sep 2004
Location: UK
Posts: 106
Creating the PDF file on the server is the best approach IMO since it does not limit you. On the server it would be straight-forward to "email this PDF to a friend" for example - not sure how that would be achieved client-side without user intervention.

Also, printing the page as PDF can give different results from what's required. e.g. I generate PDF invoices that look entirely different from the displayed page (with letterhead, terms and conditions etc) - although you could do a lot with a print media stylesheet I suppose.

There are plenty of pure PHP alternatives that don't require the PHP extension.
e.g. FPDF, or Zend_Pdf (php5) amongst many others.
__________________
Mark
Get Firefox | SitePoint

"It's difficult to get a man to understand something when his salary depends on his not understanding it" - Upton Sinclair
MRobinson is offline   Reply With Quote