Reference Guide
Reference Guides / JavaScript API / Annotations / RemoveAnnotById
In This Topic
    RemoveAnnotById
    In This Topic
     RemoveAnnotById

    This function allows you to remove an annotation using its identifier.

    RemoveAnnotById: function (docuViewareID, annotID, ensureAnnotationIsOnCurrentPage)

    Parameters

    docuViewareID
    The identifier for the DocuVieware™ instance you want to remove the annotation from.
    annotID
    A string that represents the identifier of the annotation you want to remove.

    ensureAnnotationIsOnCurrentPage
    A boolean specifying if the function must check that the specified annotation is available on the current page before instancing the deletion process. The suggested value is false.

    Return Value

    1 if error, 0 if success.