Get the zoom level for the PdfWebControl instance.
Syntax
function getZoom();Parameters
None
Return Value
Type: Integer
Returns the zoom level of the page currently being viewed (percentage)
Remarks
This method will return -1 if this page is zoomed to fit the width of the viewer.
Examples
var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance if(myApi.getZoom() == -1) { window.alert("This page is zoomed to fit width."); } else { window.alert("This page is zoomed to " + myApi.getZoom() + "%."); }