Mitch Freed wrote:
> Let me know if that didn't get explained well enough and if I need to 
> give more information.

You're working with columns, so I assume a lot of the coordinates
are defined by you (as opposed to 'calculated by iText').
You know the width of the columns to which you will add the PdfPTable,
therefore you could set the total width of the PdfPTable (use the
combination setTotalWidth/setLockedWidth). Once you have set this
width, you should be able to ask the table for the height of the rows.

Summarized:
- add the first table to the column
- perform go()
- create the second table and ask for the height of the first row
- compare this value with the current Y of the column
   (this tells you where the previous table ended)
- decide if you can add the second table to the current column,
   or if you need to jump to the next column.
   the previous)

Your question was rather wordy, so I might have misinterpreted it.
I have taken a (very quick) look at the code sample you attached,
and the issue may be that you wait to invoke go() until you have
added all the tables to the column. This isn't necessary, you can
add a table, invoke go(), then add another table, invoke go() again,
and so on...

br,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to