Matt White wrote: > I haven't written the MultiColumnText class, but that's the way it was > designed. MultiColumnText is supposed to be a simple class for people > who are afraid of using ColumnText (if you had started writing your code > with ColumnText, you wouldn't have had all these problems).
Ah, I wish I had known this. I would have used ColumnText all along... I suppose it's not too late to do some refactoring. > Anyway, this is a good opportunity to add some extra MultiColumnText > features, so I added a new constructor to the MultiColumnText class in > the CVS repository. > > ... code deleted for brevity ... > > No more iteration, just create the column text object > with a top value, a desired height, define the regular > columns, add the content and you have a mct object > that can be added to the document without checking > if there is an overflow. Where can I get a copy of the modified code? SF's anonymous CVS is still down. (I know, I know, don't complain, it's free...) Thanks for your help! - Matt ------------------------------------------------------- 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&kid0944&bid$1720&dat1642 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions