Write a PDF once and run it anywhere? Sounds like a good fit for Java! Combined with PDF writing libraries (like iText), you can do pretty much anything you want with PDFs.
Sounds like an exceptionally cool piece of code to drop into a content management system or other code that deals with documents in any way. LGPL and so compatible with a wide range of open-source licenses.