I'd like to reproduce the text wrapping behavior of MS Excel when you fill
cell A1 with a long text, larger than the column's width and any text in
cell A2.
A2 will hide any overflowing content of A1. A1 doesn't even go over its own
margin.
I've read that it can be done using fixedHeight, leaving noWrap false, plus
use split character to return always true if I want to wrap per character
basis.
The question is:
1. What's the formula that calculates the cell's height value, based on its
text content, size, font (I don't need images or other content). I'd like
the height to be very same if I had set noWrap to true. Or there is another
easier way?
2. It would be nice to have, but not necessary: I'd like to replace the
hidden content with an ellipsis character. Is there a way? Maybe detecting
the exact moment when the text wraps?
Thank you in advance.
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
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
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/