Click or drag to resize

movePage Method

Moves this page to a different location in this document.

Syntax
JavaScript
function movePage(newPageNumber);

Parameters

newPageNumber

Type: Integer

The new page number for this page.

Return Value

Type: Boolean

true if operation completed successfully; otherwise, false.

Remarks

The new page number must be between 1 and the value returned by the getPageCount Method (inclusive).

Examples
JavaScript
  var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance

//move the current page to the first page
  myApi.getPageViewed().movePage(1);
See Also

Other Resources

This website uses cookies to identify your session and other necessary functions. By using this website, you are agreeing to our Terms of Use and Privacy Policy (updated April 26 2021).
Learn About Cookies
Got it!