getPageViewed Method |
Get a PdfPage Class representing the page currently being viewed in the PdfWebControl instance.
function getPageViewed();
None
Type: PdfPage Class
Returns a JavaScript object representing the page currently being viewed.var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance window.alert("You are viewing page " + myApi.getPageViewed().getPageNumber() + " of " + myApi.getPageCount() + ".");