getPageNumber Method |
Gets a value representing the number of this page (1 indexed).
function getPageNumber();
None
Type: Integer
Returns the number of this pageThe page number is 1 indexed, meaning that the first page in the document will have a page number of 1.
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());