Page 1 of 1

Jump to page and to position (scrollbar)

Posted: Mon Nov 03, 2014 4:09 pm
by prosozial_schmitt
Hello,

we have our PDF-documents stored in a document management system. These documents are write-protected - so we can view a document with Pdf-XChange Viewer (SDK), but not edit it (stamps, lines, markup-tool...). To edit an existing document our users have to make a new version by check out (which copies it), make their changes and check in the new document.
In this case the displayed document must be closed and the new (same) document must be opend.

Our users want to see the "new" document at the same position as the "old" document. We can get the current page and open the new document and jump to the same page. But our users complains that the position on that page is not the same because they have to scroll to their last position.

Is it possible to get the current position /dimensions and set the new document exactly to the same positions/dimensions?
Is it even possible to get and set the current scollbar positions?

Greetings
Hans-Peter

Re: Jump to page and to position (scrollbar)

Posted: Mon Nov 03, 2014 5:17 pm
by Tracker Supp-Stefan
Hello Hans-Peter,

The Methods you need are:
TranslateScreenPoint to translate the position of a point on the screen to document coordinates.

And MovePointToScreenPoint to position the new document at the same place.

You might also need to capture the zoom (Magnification) used in the original file and match that as well.

Regards,
Stefan

Re: Jump to page and to position (scrollbar)

Posted: Tue Nov 04, 2014 8:06 am
by prosozial_schmitt
Hello Stefan.

thank you for your quick answer. I'll try this :)

Greetings
Hans-Peter

Re: Jump to page and to position (scrollbar)

Posted: Tue Nov 04, 2014 2:26 pm
by Tracker Supp-Stefan
:)