David Thielen wrote:
> So when we say the text must fit on a line - it all must go on that
> line.

OK, then I suggest you do use ColumnText to add each line.
Use it in simulation mode first.
ColumnText will tell you how many lines it needed if you call
the getLinesWritten() method. If you've measured the text yourself, it 
should always return 1. If it does, add the line for real with 
ColumnText.go() (not in simulation mode). If it doesn't (but I don't 
expect it won't), fall back on your initial way of adding text.
-- 
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

Reply via email to