RAD PDF Documentation
getZoom
See Also  Send Feedback

Get the zoom level for the PdfWebControl instance.

Syntax

CopyJavaScript
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

CopyJavaScript
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() + "%.");
}

See Also

Other Resources

PdfWebControlApi Methods
setZoom Method

Send comments on this topic to sales@ctdeveloping.com

Copyright CTdeveloping, LLC