Quantcast

ColumnText.setSimpleColumn() Y values in rectangle

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Loading...