DocuVieware Reference Guide
Reference Guides > JavaScript API > Actions > Operations > SetSelectionAreaCoordinates

This function allows you to set a selection area on the current page.

SetSelectionAreaCoordinates: function (docuViewareID, coords)


The identifier for the DocuVieware™ instance you want to set the selection area on.
The coordinates for the selection area you want to set in inches. It should be an object with the following structure: { left: x, top: y, width: w, height: h }

Return Value

1 if error, 0 if success.