Click or drag to resize

getPageViewed Method

Get a PdfPage Class representing the page currently being viewed in the PdfWebControl instance.

Syntax
JavaScript
function getPageViewed();

Parameters

None

Return Value

Type: PdfPage Class

Returns a JavaScript object representing the page currently being viewed.

Remarks

Examples
JavaScript
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() + ".");
See Also