Click or drag to resize

getPage Method

Gets a PdfPage Class representing the page at the specified page number in the PdfWebControl instance.

Syntax
JavaScript
function getPage(pageNumber);

Parameters

pageNumber

Type: Integer

The page number between 1 and getPageCount Method, inclusive.

Return Value

Type: PdfPage Class

Returns a JavaScript object representing the page with the specified page number.

Remarks

Examples
JavaScript
var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance
window.alert("The width of the first page is " + myApi.getPage(1).getWidth() + ".");
See Also