http://youhack.me/2010/06/10/dynamically-generate-pdf-files-in-php/

http://stackoverflow.com/questions/6172769/generate-pdf-from-phphave-to-retrieve-from-mysql-database?rq=1