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.  

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?

 

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 -----

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

Reply via email to