PDF is a proprietary format.
The ability to "make" a PDF is part of what makes Adobe money. (Acrobat 8 is quite an expensive package)
I don't think this would be an easy task.
With that said, I will say that there is a software tool from Adobe called Adobe Live Cycle, which works with XML, XFA type of datasets and produces pdfs. There is also a snippet of php code that will generate a .FDF (which is a data file that is used to populate an Adobe PDF Form. ), or sometimes .PDF files.
PHP\PDF Tutorials
Another general direction I would give you is to look into generating XML data, because many of the PDFs today can utilize XML with XFA to produce a PDF.