trainrobbery wrote: > thanks for the answer. > > is there maybe a possibilty to query to preferred size of a cell content and > to compare it with the maximum size of the cell? so i could manually shorten > the text and append the "..."-ellipsis.
One way to do this, would be to create a ColumnText object having the same dimensions of the cell. Then add content to the object and invoke column.go(true); The "true" parameter tells iText you want to "simulate" adding content. No content will actually be added. You can ask the column objects how many lines were needed, if all the text was added, and so on. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
