Please let me know of your thoughts on the same
Regards
Bharath
On 2/6/06, Bharath <[EMAIL PROTECTED]> wrote:
Thanks for the detailed explanation. So My feeling that the BYTEARRAYOUTPUTSTREAM is what is causing the problem is TRUE. The outputstream need to be Byte Array since the application runs on IE only. :(Is there any other big object in the PDF renderer other than the BYTEARRAYOUTPUTSTREAM that can be so huge which I can free without harming anything?Now I liked the FileOutputStream option but need to discuss with our customers on this before implementing the same if that seems to be the only go.RegardsBharath
On 2/6/06, Bruno Lowagie <[EMAIL PROTECTED]> wrote: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
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
--
Bharath
Keep smiling and mailing
--
Bharath
Keep smiling and mailing
CustomBufferedOutputStream.java
Description: Binary data