DocuVieware Reference Guide
Reference Guides > JavaScript API > Annotations > EnsureAnnotVisibility

This function allows you to make sure an annotation is visible using its identifier.

Calling this method will automatically select the corresponding page and display the part where the annotation is visible.

EnsureAnnotVisibility: function (docuViewareID, annotID, select)


The identifier for the DocuVieware™ instance you want to reset the search text parameters from.
A string that represent the identifier of then annotation you want to ensure visibility of.
An optional boolean to specify if the annotation should be selected or not.

Return Value

1 if error, 0 if success.