You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by "Harper, Brad" <Br...@Fiserv.com> on 2011/08/26 03:33:57 UTC

TextPosition Coordinate System

Hello:

 

Methods on the TextPosition class [1] appear to be relative to an origin
located in the upper-left corner of the page.

 

Elsewhere I recall seeing that PDF uses a coordinate system relative to
an origin in the lower-left corner in units of 1/72 inch. Is there a
reason for the difference in TextPosition.

 

Also, can anyone indicate if the coordinates used by class
PDFTextStripperByArea [2] are consistent with those of TextPosition? The
javadocs aren't clear.

 

Thanks,

 

Brad

 

[1]
http://pdfbox.apache.org/apidocs/org/apache/pdfbox/util/TextPosition.htm
l

[2]
http://pdfbox.apache.org/apidocs/org/apache/pdfbox/util/PDFTextStripperB
yArea.html