views:

116

answers:

4

Hi all,

Can someone suggest me which tutorial I can follow to get thorough knowledge about creating pdf files using php?

Thanks

+2  A: 

PDF Generation with PHP by Devshed is pretty thorough, goes into a good deal of depth.

Any problems/confusion along the way, it is always a good idea to cross-reference with the PHP: PDF - Manual page.

Anthony Forloney
+3  A: 

fpdf.org is nice.

SpawnCxy
I agree. FPDF is very nice. I'm interested in using Zend_PDF http://framework.zend.com/manual/en/zend.pdf.usage.html the next time I need to do something, but haven't gotten the opportunity yet.
Travis
Depending on how complex you want your PDFs to be, you might want to stick with FPDF - Zend_PDF is still missing some features I consider fairly essential (such as automatic text-wrapping).
Stephen Orr
+1  A: 

When I first needed to create PDFs in PHP I started using FPDF, however the documentation wasn't all that great. Following this I've now moved over to using TCPDF which I've had great success with and the documentation is a lot more detailed and precise.

A: 

There's also the option to use something like PrinceXML, where you create your document in HTML & CSS and then have Prince convert it to PDF. They provide a small PHP library to help with this. It's free for non-commerical use.

Shep