Hi, All: I am using the iText to generate the PDF file for the tax form. But I have a task to finish. I need to combine all the PDF file together as one single file for publishing. If not so many files get combined, everything is OK. But if I use iText to combine a lot of files, I got out of Memory error. I output the total memory and free memory each time a new file get appended, the free memory decreases very fast. I could not find a profiler for Eclipse, otherwise I can ping down some classes.
>From the iText source files, I can see it is adding the IndirectReference to a map. Not sure it is appending the bytes for the page contents(seem true to me). No matter how much heap memory I specify, it cannot be enough. And very strange things is, when I generate using commercial lib(as test version), the combined file is extrem small than using iText, even I set the full compression on. The single file I generate using iText is 119K each, 4 pages. Using commercial lib is around 90K. By combing 25000 file together using the commercial lib, the result file is 25MB. But iText generate 78MB after 400 - 500 files. And then out of memory error. I set max heap memory to be 600MB. I have 1 GB memory. Is there one has suggestion for this? I am using the PdfCopy to do the work for combining. Thanks in advance. Jashua __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- 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
