quiet moment.
Tilman
Does this seem right, or 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 PDActionU
s 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, I can't take the rectangle as it is,
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 org.apache.pdfbox.e
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 boundi
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:
https://git-wip-us.apache.org/repos/asf?p=tika.git;a=blob_plain;f=tika-parsers/src/test
5 matches
Mail list logo