I would like to be able to get the global screen coordinates for the current aperture.
The only real screen coordinates I can seem to find in the APIs is to get the Window frame. The problem I have is this includes the scroll-bar, and any shown tool-bars. I could manually compensate for these but the scrollbar-width would be platform specific and the toolbar width's seem like they could fluctuate between Acrobat versions.
This method seems problematic and I was wondering if anyone knew of a clean way to translate device coordinates directly to screen coordinates or a clean way of knowing, in screen coordinates, where the actual aperture view-port is on screen.
I started searching the javascript API and found doc.pageWindowRect which seems exactly what I am looking for.
So further questions would be:
1) is there a Plugin-API equivilent?
2) is there and easy way to call into the Javascript API from the Plugin-API?