We can't change a library just because of a very specialized need. What's the problem with sub-classing ZipOutputStream?
Best Regards, Paulo Soares > -----Original Message----- > From: Roman Novichenok [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, May 28, 2002 14:36 > To: 'Paulo Soares' > Cc: [EMAIL PROTECTED] > Subject: RE: [iText-questions] doc.close() closing OutputStream > > Something like: doc.finish() that would do all the same things that > doc.close() does, except for closing the output stream that was provided > when creating the writer for the doc. > > Thanks, > Roman > > -----Original Message----- > From: Paulo Soares [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 28, 2002 5:26 AM > To: 'Roman Novichenok'; 'John K. Watson'; > [EMAIL PROTECTED] > Subject: RE: [iText-questions] doc.close() closing OutputStream > > > > > -----Original Message----- > > From: Roman Novichenok [SMTP:[EMAIL PROTECTED]] > > Sent: Tuesday, May 28, 2002 1:57 > > To: 'John K. Watson'; [EMAIL PROTECTED] > > Subject: RE: [iText-questions] doc.close() closing OutputStream > > > > I could, but that would really increase the memory requirement for the > > server. There could be a lot of documents created on the web server > at > > the same time. > > > Did you miss the suggestion to subclass ZipOutputStream and > override > the close() method to just call super.closeEntry()? > > > > Commenting out one line ( os.close() ) in > com.lowagie.text.DocWriter.java > > seems to do the job, without breaking anything else. I realize I > cannot > > just start making changes to code. > > > > What is the process for getting a new method added? > > > What method? > > Best Regards, > Paulo Soares > > > > Thanks, > > Roman > > > > -----Original Message----- > > From: John K. Watson [mailto:[EMAIL PROTECTED]] > > Sent: Saturday, May 25, 2002 1:06 PM > > To: Roman Novichenok > > Subject: Re: [iText-questions] doc.close() closing OutputStream > > > > Could you write each pdf into a ByteArrayOutputStream and then copy > that > > into the ZipOutputStream after the document.close()? > > John > > > > ----- Original Message ----- > > From: Roman Novichenok <mailto:[EMAIL PROTECTED]> > > To: > > Sent: Friday, May 24, 2002 11:45 PM > > Subject: [iText-questions] doc.close() closing OutputStream > > > > I am trying to write multiple pdf files into a single zip > archive. > > > > The idea would be to create a ZipOutputStream and then in a loop > > create pdf Documents providing the zip stream to the writer. > > > > I get an exception thought after trying to use the zip stream > after > > the first document.close() the stream is closed by i-text. > > > > Is there some other way to finish the document, that would not > force > > closing the underlying stream? > > > > Thanks, > > Roman _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
