net2tech wrote: > This works fine most of the time, but sometimes the text in the columntext > appears in the next line. I am assuming its being wrapped. How can I > explicitly tell ColumnText not to wrap text?
Reduce the height of the rectangle defined with llx, lly, urx and ury and the text will not be wrapped, but truncated. Increase the width of the same rectangle if you don't want the text to be truncated. How do I determine this size on the fly? I have the llx, lly, urx and ury info, but how do I know when the text is truncated or when its being wrapped? I am currently calculating the font size as follows float fSize = rct.Width * SCALE_FACTOR; //const float SCALE_FACTOR = 72f/300f; Many Thanks -- View this message in context: http://www.nabble.com/ColumnText-question-tf2941397.html#a8261118 Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/