In This Topic
Reference Guides / JavaScript API / Annotations / GetAnnotBBoxOnViewer

GetAnnotBBoxOnViewer

In This Topic
 GetAnnotBBoxOnViewer

This function allows you to obtain the bounding box coordinates of a specific annotation into the viewer area .

GetAnnotBBoxOnViewer: function (docuViewareID, annotID)

Parameters

docuViewareID
The identifier of a DocuVieware™ instance.
annotID
A string that represents the identifier of then annotation you want to obtain the BBox coordinates of.                

Return Value

1 if error, if success: coordinates, in pixels, of the annotation bounding box area under the following form: { left: x, top: y, width: w, height: h }.