You don't have to generate a new table header. Keep the same table by deleting all the rows that don't belong to the header after placing it.
Best Regards, Paulo Soares > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Tyler Kiehle > Sent: Thursday, April 15, 2004 9:23 PM > To: [EMAIL PROTECTED] > Subject: [iText-questions] OutOfMemeory Error with large PdfPTable > > I get Java OutOfMemory errors when I generate a PdfPTable > greater than 500 rows > with 22 columns. I had the same problem originally with the > Table class, but I > changed to PdfPTable after reading the newsgroup. > > I've already maxed out my JVM memory settings at 500MB, but > I'm looking for a > permanent solution. Is there a memory leak I may not be > seeing, or do I need > to look into programming garbage collection into my jsp. By > the way, this > problem is occurring in a jsp I've written that uses Beans to > query a MySQL > database and generate a pdf table containing various > ResultSets returned and > iterated through to populate the table. > > Is there something I can do to prevent this besides > generating a new PdfPTable > for every new page in the pdf document, which I am having > trouble doing. > Specifically, I'm having trouble generating a new table > header for the > ResultSets spanning more than one page. > > Any advice is appreciated. Let me know if you would like to > see some code. > > Tyler > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
