Have a look at some of these. They are Java libraries for generating pdf files http://www.etymon.com/ http://pdf.dotshell.com/ I haven't used either of these, and I know that there are a bunch more as well. I used a package called pdflib but I can't seem to get at the website, so I don't know what happened to that. I used pdf lib to generate pdf files on the fly and display it in a browser. Hope this helps.
---<br />Time flies like an arrow,<br />Fruit flies like a banana
I have used both iText and the FOP approaches. IText is good if you want to read data from a database and directly format it into a PDF file. There is no XML involved here. It is good for generating small PDF's on the fly for display in a browser. In the FOP way, you have to format the data you read into XML, then create an xsl stylesheet using formatting objects, the xml is then rendered into a PDF using the xsl stylesheet. If the document is large, the transfomation is rather slow and is better done offline. However this way gives you more flexibility on the PDF. Easy to modify PDFs quickly... It will take a little longer to setup and learn if you have not worked with XML/XSL before.
Is this the real life? Is this just fantasy? Is this a tiny ad?
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps