On Jun 9, 2010, at 2:12 PM, Mark Storer wrote:
> PdfTemplate doesn't support annotations like that. It's package
> private
> because there are things that /can/ work, but You Have To Know What
> You
> Are Doing.
>
> I believe ColumnText will help. IIRC, it can draw directly to a
> PdfContentByte/template/thingy.
>
> Yep. That'll do the trick.
>
> http://api.itextpdf.com/com/itextpdf/text/pdf/ColumnText.html
Hi again Mark,
I tried this in place of my aforementioned beginText/endText block:
ColumnText columnText = new ColumnText(pdfTemplate);
columnText.setSimpleColumn(x, y, x+boxWidth, y+boxHeight,
columnText.getLeading(), Element.ALIGN_LEFT);
columnText.setText(new Phrase(text, f));
columnText.go();
This works great -- I also get word wrapping! Posted to the list so
others can see some example code.
Thanks again! You rock!
--
Thomas Hauk
Shaggy Frog Software
www.shaggyfrog.com
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.itextpdf.com/book/
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/