well. lets see this is what i have the main page is a table the main table have a header follow by other types of table inside that table
the other tables have headers too. When i do stuff like getTotalHeight it will tell me the hight of the table with only 1 header counted even if the maintable breaks and the second page have another header also the subtable breaks and second page have header of that. also it does not count extra spaces to make the subtable fill the big table when not enough room. so what i need is a way to get the height of table including all the extra page headers and subheaders. when a table and sub table is broken. also the extra spaces it adds to make the pages before fill to end. because for sub table after that i would like to make the subtables be certain minheight to make it touch the end of the page if the table itself isnt big enough. 1T3XT info wrote: > > FlyingBuzz wrote: >> I have a big problem figureing the height of a table when a page breaks. > > I don't know if I understand the question, but whenever I need > more control over tables, I wrap them in a ColumnText object, > as is done here: > http://www.1t3xt.info/examples/browse/?page=example&id=286 > (I deliberately added ugly borders so that you can distinguish > the outer and the inner tables.) > > In the example, there's a loop that adds newPages. > You could adapt the example so that the column is added > in 'simulation' mode first, then investigate the properties > of the column (for instance: did the table fit or not) and > then recreate the table based on your findings. > -- > This answer is provided by 1T3XT BVBA > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > iText-questions mailing list > [email protected] > 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 > > -- View this message in context: http://www.nabble.com/Big-problem-in-deteterming-height-when-page-breaks-tp17833515p17836791.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ iText-questions mailing list [email protected] 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
