How to draw an annotation over a link without following the link

Hi there,

Thanks for contacting WebViewer forums,

Certain tools have an API called enableCreationOverAnnotation() where you can draw an annotation over another annotation:


Note that this method will still trigger a link confirmation modal but you will be able to create the annotation.

You can also use the Listable property as shown in this forum post:

There is also another method where you can use the isDisabled method:

const { documentViewer, Annotations, annotationManager, Tools } = instance.Core
const linkAnnotations = annotationManager.getAnnotationsList().filter(annot => annot instanceof Annotations.Link)
linkAnnotations.forEach(link => link.isDisabled = true)

Best regards,
Kevin Kim

1 Like