did I happen to get this right on this one doc?
-Original Message-
From: Tilman Hausherr [mailto:thaush...@t-online.de]
Sent: Thursday, July 7, 2016 12:55 PM
To: users@pdfbox.apache.org
Subject: Re: associating text with a PDActionURI?
here's code that works - for some reason,
sage-
From: Tilman Hausherr [mailto:thaush...@t-online.de]
Sent: Thursday, July 7, 2016 12:55 PM
To: users@pdfbox.apache.org
Subject: Re: associating text with a PDActionURI?
here's code that works - for some reason, I can't take the rectangle as it is,
I have to flip the coordinates. I wonder
here's code that works - for some reason, I can't take the rectangle as
it is, I have to flip the coordinates. I wonder if this is documented.
The coordinates in the PDF are PDF coordinates (bottom is y = 0), but
the coordinates I had to use are top is y = 0)
Tilman
package
You can't really know for sure with the classic text extraction, but you
could use the extractTextByArea example with the rect coordinates.
Additionally, please try the DrawPrintTextLocations example. That one
paints three colors on the page... blue is the bounding box, cyan is the
real
Sorry, duh, I switched to overriding writeString(String text, List
positions) instead of writeString(String text).
I can calculate x overlap, but I can't figure out how to get overlap on y.
The file is here:
5 matches
Mail list logo