in reply to Using perl to modify existing PDF?

You may want to check out Text::PDF::File and / or TeXExec. I believe TeXexec is free... as well as Text::PDF (from Cpan).

Good Luck,
- Moon