In This Topic
Reference Guides / JavaScript API / Actions / Zoom / ZoomRect

ZoomRect

In This Topic
 ZoomRect

This function zooms the specifed rectangle in the active page of the loaded document for the specified DocuVieware™ viewer.

ZoomRect: function (docuViewareID, rect, success, error)

Parameters

docuViewareID
The identifier for the DocuVieware™ instance.
rect
The rectangle you want to zoom in, it has to be an object with the following structure: { left: x, top: y, width: w, height: h }
success
A function that will be executed upon success.
error
A function that will be executed upon error.

Return Value

0 if error, 1 if success.