Click or drag to resize

getPageNumber Method

Gets a value representing the number of this page (1 indexed).

Syntax
JavaScript
function getPageNumber();

Parameters

None

Return Value

Type: Integer

Returns the number of this page

Remarks

The page number is 1 indexed, meaning that the first page in the document will have a page number of 1.

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

//display the number of this page
  window.alert("This page is number: " + myPage.getPageNumber());
See Also

Other Resources