Get pixel coordinates of cursor in PDF?

2

1

How can I see the page-relative pixel coordinates (x,y) of the cursor while viewing a PDF? A solution for Windows, OS X, or Ubuntu is fine.

I know this can be done in Photoshop, but I don't own Photoshop, so I'm looking for another solution.

Wesley Tansey

Posted 2012-12-12T07:50:11.670

Reputation: 233

Question was closed 2016-02-18T01:32:22.190

Answers

0

A pdf (and ps) viewer that shows cursor coordinates is gsview, but it only runs in windows. So far as I know it is the only one that does that.

variabilis

Posted 2012-12-12T07:50:11.670

Reputation: 1

1Can you expand your answer to include a download link and a screenshot of the relevant feature? – Burgi – 2016-02-29T10:58:25.867

for posterity: https://www.ghostscript.com/download.html

– Kinjal Dixit – 2019-01-25T12:12:38.813

0

I don't know about PDF readers specifically.

However a couple of general solutions:

Windows: autohotkey has tools for pulling window relative coordinates so one just needs to negate toolbars etc.

Linux: On X11 systems a tool called Xev is available that displays all X11 events including cursor movement and it can be told to be limited to a particular window ID gained via xwininfo.

ewanm89

Posted 2012-12-12T07:50:11.670

Reputation: 268

I guess the problem with those solutions is that it is not very robust. If I write a tool to help extract that info, other people would need the same settings as me to use it. – Wesley Tansey – 2012-12-12T20:32:04.200

Depends, without knowing more of exactly what you want the data for? – ewanm89 – 2012-12-13T00:13:32.060

I have several PDFs that are just image scans of forms. I have all the data necessary to auto-complete the forms, but I need to first find the pixel location of each field so that my autocomplete app knows where to write the data. Right now, it's just trial and error which is slow and tedious. – Wesley Tansey – 2012-12-14T00:23:45.870

Are the fields are identical rectangle boxes other than the content in them? – ewanm89 – 2012-12-14T00:42:29.557

No, they're scattered all over the place and of varying sizes and shapes. Imagine a really long health insurance form. Hence, I need a tool to help me quickly identify and write down the bounding areas of each field. – Wesley Tansey – 2012-12-15T21:24:04.657