Bharath wrote:
Ya. What if I flush the Docwriter. Will that be helpful?
No.
Currently the issue that I am facing is this. The PDF is getting generated for around 900 pages but when it crosses this the system gives a OUT OF MEMORY Error. We feel this is because of the BYTEARRAYSTREAM that we are using to write the PDF to the web application that we use.
If you write to response.getOutputStream() directly, the problem won't occur. I use this solution in a controlled environment: i.e. the company I work for can
force the users to use Firefox, Mozilla or Netscape only. The ByteArrayOutputStream solution is only used to avoid problems with MSIE.
Or If I create new Documents will that be on a single PDF or multi PDF. I do not want multi-PDF at any cost..
The question is wrong. You can create multiple documents by using new Document, but what OutputStream are you going to use? You could write the complete PDF to a FileOutputStream and serve this file to the end-user. Once the file is read to the ServletOutputStream, you could delete the file. br, Bruno ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
