Sergio Lopez wrote:
> Also tried with writeSelectedRows but same results...

I'm not an Oracle specialist, so I can't say more than
what is advised on the page you linked to. However:
some extra questions: on the forum, you find tips on
how to fix the problem (none of the solutions is an
option for you), but do you have any idea what causes
the problem? Is it a memory problem (you say that it
happens when there are more than 2500 rows)? Is it a
problem with the way iText is compiled (currently with
the JDK 1.4)?
It would be interesting to find out if the problem
goes away when you compile iText with an OJVM compiler.
Or if you could work around the "2500 row" problem.
Maybe this will help:
http://www.nabble.com/Re%3A-TableLayout-%2B-Memory-Management-p16471255.html
I've adapted the snippet that applies:

PdfPTable table = new PdfPTable(4);
table.setComplete(false);
for (int k = 0; k < 20000; ++k) {
   table.addCell(new Phrase(String.valueOf(k)));
   if (k % 400 == 0) {
     document.add(table);
   }
}
table.setComplete(true);
document.add(table);

This should send the rows to the PDF 100 at a time.
-- 
This answer is provided by 1T3XT BVBA

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to