Top of page

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

anovy
User
Posts: 164
Joined: Mon Feb 08, 2010 8:48 am

Top of page

Post by anovy »

Hi, how I can programatically force the page view to begin with top of a certain page?
SetDocumentProperty(docid,"Pages.Current",page) does this, but only if the current page changes.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Top of page

Post by Vasyl - PDF-XChange »

Hi, anovy.

You may run the special java-script by:

Code: Select all

RunJavaScript("this.pageNum = <0-based page index>;", NULL, 0, 0);
Cheers.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
anovy
User
Posts: 164
Joined: Mon Feb 08, 2010 8:48 am

Re: Top of page

Post by anovy »

Thanks, works perfectly.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Top of page

Post by Stefan - PDF-XChange »

:)