getHeight Method |
Gets a value representing the height of this page in pixels.
function getHeight();
None
Type: Integer
Returns the height of this page in pixelsThis height of the page is based on the page height when it is not rotated. To determine the current rotation of a page, see the getRotation Method.
var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance var myPage = myApi.getPageViewed(); //display the width and height of this page window.alert(myPage.getWidth() + " x " myPage.getHeight());