Generating PDF on the fly using on the fly XML

2003-02-03 Thread joni santoso
Hi, I used to create a servlet that can produce PDF by setting its contentType. 1. Now, I wonder if I can use Apache FOP to take XML stream that I created using JDOM to produce a PDF? How? 2. Is it possible to produce a PDF that only contains JPEG using XML stream? I am thinking about

RE: Generating PDF on the fly using on the fly XML

2003-02-03 Thread Mihael Knezevic
one method of using dynamically create xml content would be to use the StringReader. here some sample code: StringReader input = new StringReader(xmlString); try { FileReader inputxslt = new FileReader(new File(xslfile)); Transformer transformer =

RE: Generating PDF on the fly using on the fly XML

2003-02-03 Thread robert_hitchins
Try looking into Cocoon...I use it to take data from a database, parse it into an xml file, transform it using XSLT into an FO file and render the resulting FO file as PDF on the fly...it handles pictures/text/forms just fine. You can find it at www.apache.org/Cocoon. Hope this helps! Bob