PdfWriter.setCloseStream(false) > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Bear Giles > Sent: Friday, March 04, 2005 5:58 AM > To: [email protected] > Subject: [iText-questions] Does document.close() close > underlying stream? > > I'm running into an unusual snag. Some things I've read suggest > that I need to call document.close() for PDF generation to work > reliably, but document.close() appears to close the underlying > stream in addition to flushing structures. > > This isn't a problem when writing to disk, but I'm writing to a > (hidden) ByteArrayOutputStream used by a convenience class that > handles email. Close that stream and it disappears - before the > contents can be attached to the outgoing message. Seriously uncool. > > The other tools I've used, e.g., POI for generating XLS files, > don't seem to have the same behavior. > > Have I missed something? > > Thanks, > > Bear > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from > real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions >
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
