Greg Holling wrote: > Hi all. > > I'm trying to get the current Y coordinate while I"m inserting text > and images into a ColumnText.
Did you read the documentation? That is: chapter 3 of the second edition of "iText in Action". http://itextpdf.com/book/ > I've tried a bunch of things, none of > which seemed to work. Here's a summary: > > (1) PdfWriter.getVerticalPosition() and > PdfWriter.getVerticalPosition(true) > both always return the same value: 806.0 That only works if you use the approach described in chapter 2; it doesn't work in the totally different approach of chapter 3. > (2) PdfWriter.setPageEvent() This isn't what page events is about! Please read chapter 5 to understand what page events are for. ColumnText has methods such as getLinesWritten() (see listing 3.16) and getYLine() (see listing 3.18) to find the information that you need. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ 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 iText-questions@lists.sourceforge.net 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/