How to create a PDF file with PHP?
You can try free libraries like fPdf
FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.
Use Zend_PDF I guess.
Check the documentation here: http://framework.zend.com/manual/en/zend.pdf.html
It's the best PDF generator for PHP IMO.
Look into Zend_PDF from Zend Framework - it allows you to create/manipulate PDFs.