Annotation popup location

Product: WebViewer

Product Version: 8.0.1

The annotation popup changes its location relative to the annotation based on the space available (e.g. above the annotation when the annotation is near the bottom of the page).

Is there a way for me to manually specify where I want that popup to appear? Sometimes I need it to be above the annotation for UX purposes, even if the annotation isn’t near the bottom of the screen.

Hello martin.jones,

Unfortunately there are no settings to change the annotationPopup position in WebViewer out-of-the-box. In order to do this, you would have to fork our public repo and then make the changes to the code. If you are interested in doing this, we have a guide on advanced customizations to explain this here: PDFTron Systems Inc. | Documentation

From there, the changes would likely have to be made in the getPopupPosition helper file here:

Best Regards,
Carlo Mendoza
Software Developer
PDFTron Systems, Inc.
www.pdftron.com