posted 12 years ago
Apache FOP can create PDFs from XML documents, provided you supply XSL-FO stylesheets that describe the transformation.
Another possibility is to parse the XML and create PDFs with a library such as iText along the parsing process.
I advise against storing files in the DB, by the way.