in reply to PDF and Perl
You may also want to look at PDF::Report which is a wrapper around PDF::API2. I haven't used it, only used PDF::API2 directly, but it looks like it might make things a bit simpler.
cheers,
J