RAD PDF Documentation
setZoom Method
See Also  Send Feedback

Set the zoom level for the PdfWebControl instance.

Syntax

CopyJavaScript
function setZoom(zoomLevel);

Parameters

zoomLevel

Type: Integer

The zoom level at which the pages should be shown. This number should be a positive zoom level percentage. Specify -1 to fit the page to the current width of the viewer. Specify -2 to fit the page to the current height of the viewer. Specify -3 to fit the page to the current width and height of the viewer.

Return Value

Type: Boolean

Returns true if successful

Examples

CopyJavaScript
var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance
myApi.setZoom(100); //zoom to 100%

See Also

Other Resources

PdfWebControlApi Methods
getZoom

Send comments on this topic to sales@ctdeveloping.com

Copyright CTdeveloping, LLC