Skip to main content
February 15, 2017
Question

Javascript in Acrobat XI Pro, Document Coordinates of Computer monitor display

  • February 15, 2017
  • 1 reply
  • 369 views

With javascript in Acrobat XI Pro, is there a way to determine the document page coordinates of the center of the computer monitor when zoomed in?

This topic has been closed for replies.

1 reply

Joel Geraci
Community Expert
Community Expert
February 15, 2017

Yes - Look at the document properties viewState, pageWindowRect, and innerDocWindowRect in the JavaScript for Acrobat Documentation. You can calculate it knowing those values. What exactly are you trying to accomplish?

February 15, 2017

I am reviewing large drawings and I need to mark areas with semi transparent boxes where there are areas of concern.

I can create the boxes without any problems but not within the field of view of the monitor, so I want to create the boxes in the middle of the viewing area instead of chasing after the boxes in a static location (laziness on my part).

Thanks for the hints, I will try them out.

tom