Hi,
Thanks for the great tool - amazing. I have a small requirement.
I need to know the X & Y co-ordinates of some locations inside my PDFs (in inches). I am using the Distance measurement tool inside your measurement toolbox for this purpose. I click on the (0,0) location first and then I click on the target location to get the X & Y values of that point.
Is there a simpler way to do it? Someway in which I can get the co-ordinates displayed on the menu bar on a single click?
This is quite urgent.Any suggestions will be appreciated.
Regards,
Priya
X Y Co-ordinates of mouse inside the PDF
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19930
- Joined: Mon Jan 12, 2009 8:07 am
Re: X Y Co-ordinates of mouse inside the PDF
Hello Priya,
Using only tools that are available in the Viewer I am afraid there is no easier way.
If you are comfortable with computers you could try running the following JavaScript when you have the document opened in our Viewer:Please note that the string should have mouse and X without a space between them but due to some spam filters we have if I write it correctly it is hidden by a "this is spam" message 
To open the JS Console Press "Ctrl + J" and to execute the script - when pointing the mouse at the location you want - use Ctrl + Enter (with the JS window having focus).
Please note that coordinates (0,0) on a PDF Page is the lower left corner if the page has not been rotated!
Best,
Stefan
Using only tools that are available in the Viewer I am afraid there is no easier way.
If you are comfortable with computers you could try running the following JavaScript when you have the document opened in our Viewer:
Code: Select all
console.println( "("+this.mouse X/72+","+ this.mouseY/72+")" );To open the JS Console Press "Ctrl + J" and to execute the script - when pointing the mouse at the location you want - use Ctrl + Enter (with the JS window having focus).
Please note that coordinates (0,0) on a PDF Page is the lower left corner if the page has not been rotated!
Best,
Stefan