[EMAIL PROTECTED] wrote:
setSimpleColumn method and then use the setLeading method with suitable arguments.
This way you can vary the space between the lines and try to fit in the text depending on the number of lines. That's a possible solution.
If am right the setLeading method combines the font and the size of the text.
Not exactly. Setting the leading doesn't change the font size, it only changes the space between the lines. If the rectangle was defined by an multiline text field (AcroForm) with font size 0, iText would have tried to fit the text inside this field by changing the font size. But that's a completely different solution. br, Bruno ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
