Jim Hurricane wrote: > Sorry, I guess my question wasn't clear... > > I'm trying to see if there's a simple change that can be made to the > Romeo & Juliet Example that will let you output to a baos instead of to > a physical file. If not, I already have the code that reads the PDF into > a BAOS and returns it to the browser.
You are referring to the example in chapter 14 of the book: http://itext.ugent.be/itext-in-action/chapter.php?chapter=14 As explained in chapter 2, iText can write PDF to any OutputStream. In the example, a file is written to: new FileOutputStream("romeo_juliet.pdf") But you could easily replace this with baos, where baos is constructed like this: ByteArrayOutputStream baos = new ByteArrayOutputStream(); br, Bruno ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
