peter.henning...@wcenter.de wrote:
> I see two other options to implement the desired functionality:
> 
> - put code into ColumnText.go() to generate an event whenever the column 
> if full or the text ends. Then pass the current position in that event 
> object
> - change ColumnText, so the current position can be obtained with getXPos()

After reading the initial question, I interpreted it the same way as 
Paulo. Reading your follow-up, I see that generic tags probably won't 
help: you don't know in advance where the column will split.

I've looked at the code very briefly (I'm sorry, I really don't have
much time this week), but maybe the method writeLineToContent in
PdfDocument should return an X value that can be captured by ColumnText.

What you need is PdfLine.getLeft() + PdfLine.GetLineLengthUtf32() of
the last line that is added. However, if there is "glue" in the line,
or if the line is justified, the method writeLineToContent will add
extra spacing.

Post a reply to the list if you don't have the time to look at this
before Sunday. Maybe I'll find some time to work something out then,
or you can share your experience if this (very premature) suggestion
leads nowhere (in which case, I'll have to think of another way to
achieve what you need).
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
_______________________________________________
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/

Reply via email to