As is stated in the reference, this method uses the coordinates of the
rotated user space. The PDF Reference contains more info about this.
Yes, we've read all the reference guides etc. But none of them gave us the information we needed.
What exact information do you need, then?
It's hard to formulate: basically we need to understand how the scrolling is handled in Adobe Reader.
Like: why does the scrolling index change every time you change to a new page. It gets resetted or something.
Anyway: you cannot create a variable "scrollVerticalIndex" and "scrollHorizontalIndex" and increment it everytime you want to go down or up/left or right and say scroll(scrollHorizontalIndex,scrollVerticalIndex). Also, if you zoom in, the dimension of your page stay the same. We cannot find a way to calculate top or bottom of a document.
In a perfect world you could say: (height of a page) x ((number of pages)-1) = total height of the document (and thus the total amount you can scroll up/down). But that is just not the case...
We want to get an insight how the scrolling works :-)
Does this make sence ;-) ?
It's a page-based scroll, not document based, as mentioned in the documentation. PDFs themselves are page-based. Note that you can get information about the current view using the doc.viewState object.