I want to create 5 unique tables (pulling from 5 different datasets) on each
page, each of which may span over multiple pages.

What I would like to do is add rows to the first table until no more will
fit on current page (table height + current row height exceeds page
height), add rows to the second table until no more can fit on this same
page, add rows to third table, etc.

Once I have filled each table to the point where no more will fit on current
page, I write each of the 5 tables (table.writeSelectedRows), do a
newpage, create 5 new tables, and start the process of adding rows over
again until I have exhausted my datasets.

My problem is that I am not able to get the table or row height until I
write the table to the document.  Each table is only one column wide, and
the column is a fixed width (not a percentage) so it seems that I should be
able to get the height before I actually write the rows.

I don't think I can use document.add(table), which would take care of page
breaks for me, because once the first table creates a newpage then I don't
think I can return to the prior page to add content for the second table,
but perhaps I'm wrong?

Perhaps I should be using columns rather than tables, not sure it would make
a difference?

Any suggestions?  Is there a way to figure out the height of the row BEFORE
I add it to the table?

Thanks!
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to