It's a bit tricky because not all widget annotations are fields,
sometimes the field is a parent. (See the file from PDFBOX-142).
But I think it can be done... would it be ok if the name is displayed in
the status line, near the coordinate? I'm not an awt / swing developer
so I can't do a popup window easily. (I could look how it is done in the
content stream display but it's really not a priority)
algorithm:
- look through the annotations
- check whether within rectangle
- if yes, check /T. If not available, go to /Parent
- all this is to be done in PagePane.java
- iterates through all fields to match the COSObject of the one we found
- when found, call getFullyQualifiedName() (because we can't have the
non-terminal parent of a terminal field unless we "came from there")
- alternatively, go through all fields from the acroform, check all
widgets where the page matches, then find whether the rectangle matches.
Hmm, that seems easier, so I'm gonna try that one, but I'm keeping the
old text just in case.
Tilman
Am 27.04.2018 um 17:53 schrieb JZ Q:
Hi Tilman,
As the user moves the mouse on the rendering view, pdf debugger knows the
coordinate. Can we add a feature to display all PDField's FQN under the
mouse cursor? Each field is bounded by a rectangle. Or can we provide a
simple search of coordinate and fetch the fields. I feel this is a very
useful feature, especially on a complex page. Thanks.
On Fri, Apr 27, 2018 at 11:27 AM, Tilman Hausherr <thaush...@t-online.de>
wrote:
No, there is no such feature. There is no interaction from the rendering
window with the rest.
If this happened to me, I would either look at the names in the annotation
fields, or check the rectangle of each annotation.
Tilman
Am 27.04.2018 um 17:12 schrieb JZ Q:
Hi everyone,
PDFDebugger tool is very helpful. When I select the page number, the right
panel displays PDF page. Is there any way to associate the form field on
the view with the node on the navigation panel on the left? For example,
if
I click on one field on the right panel, I was hoping that the data object
will be selected/highlighted on the left side.
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org