ColumnText.setSimpleColumn() Y values in rectangle

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

ColumnText.setSimpleColumn() Y values in rectangle

David Thielen

Note: I’m posting this so it’s in the email archives for anyone searching on this in the future.


In the call ColumnText.setSimpleColumn(), while the X parameters passed in are the left and right limits of the text to be rendered, the Y parameter is the baseline for the text, not a boundary. The values used internally by iText in ColumnText.showTextAligned are Y – 1 and Y + 2 where Y is the baseline.


The baseline is the location of the bottom of a character that has no descender such as A.


Tags: ColumnText setSimpleColumn Y


iText-questions mailing list
[hidden email]

Many questions posted to this list can (and will) be answered with a reference to the iText book:
Please check the keywords list before you ask for examples: