I know jack diddly about PHP and creating PDF... other than I must submit all documents as PDFs.
A good friend taught himself PHP from here... and can do damned near anything -
http://www.php.net/manual/en/index.php
And this is where I get my PDF creator -
http://sourceforge.net/projects/pdfcreator/
Sorry I can't help more, it is outside my field.