Re: associating text with a PDActionURI?

2016-07-09 Thread Tilman Hausherr
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,

RE: associating text with a PDActionURI?

2016-07-07 Thread Allison, Timothy B.
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

Re: associating text with a PDActionURI?

2016-07-07 Thread Tilman Hausherr
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

Re: associating text with a PDActionURI?

2016-07-07 Thread Tilman Hausherr
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

RE: associating text with a PDActionURI?

2016-07-07 Thread Allison, Timothy B.
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: