Prevent Display of Annotation Text-Content when hovering over icon in document

What API or method can I use to disable or block the annotation text modal/popup (the text of the annotation) that displays when the user hovers over an annotation icon in the document (sticky note, for example)? I need to prevent this from showing.

If there’s not an available API for this, could you please refer me to the governing Component and specific code, and I will make the change there and then use npm to build a custom webviewer-ui.js file.

I’ve upgraded to version 6.3.3.

Thank you for your help - Suzanne

Hi Suzanne,

You can disable the overlay using: readerControl.disableElements([‘annotationContentOverlay’]).

If you want to modify this component, you can also customize our open source UI: https://github.com/PDFTron/webviewer-ui. The component you would be looking to edit is the AnnotationContentOverlay. You can also sift through the components for the data-element names to toggle when using disableElements and enableElements.

Andy Huang
Software Developer
PDFTron Systems Inc.