Re: generating a PDF from PHP, there is also the File::PDF package from the PEAR repository. It's based on FPDF.
CXV. Printer Functions
These functions are only available under Windows 9.x, ME, NT4 and 2000. They have been added in PHP 4.0.4.
This PECL extension is not bundled with PHP.
add a note User Contributed Notes
proton dot mule at gmail dot com
arne dot briesenick at soxabo dot de
jason at matteson dot com
macagomez at yahoo dot com
jwlash at acm dot org
surak at surak dot eti dot br
kincaic at swbell dot net