Hi,
have you seen this: http://www.fpdf.org/ ?
In the "scripts" page you can find examples for managing postgresql data.
all the best
flavio
--
io uso Debian GNU/Linux
user #413018 counter.li.org
<<usiamo formati aperti!>>
http://it.wikipedia.org/wiki/Formato_aperto