getPage Method |
Gets a PdfPage Class representing the page at the specified page number in the PdfWebControl instance.
function getPage(pageNumber);
pageNumber
Type: Integer The page number between 1 and getPageCount Method, inclusive.Type: PdfPage Class
Returns a JavaScript object representing the page with the specified page number.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() + ".");