nick
November 21, 2022, 6:14pm
1
WebViewer Version: 8.7.0
“No” to all of these questions:
Do you have an issue with a specific file(s)?
Can you reproduce using one of our samples or online demos?
Are you using the WebViewer server?
Does the issue only happen on certain browsers?
Is your issue related to a front-end framework?
Is your issue related to annotations? Yes
Is it possible to only display an annotation when hovering over a defined hit area within the WebViewer’s document?
Andrey
November 21, 2022, 6:25pm
2
You can control the visibility of each annotation: PDFTron Systems Inc. | Documentation . If you have an event, you can then toggle the visibility of the desired annotation.
nick
November 21, 2022, 6:35pm
3
Thanks, Andrey!
Regarding an event, would there be a way to detect if a user’s cursor is hovering / entered into a defined “hit area” within the document?
For example, we are looking to display a green circle annotation when the user’s cursor enters the pink box:
The pink box would ideally be invisible to the end-user (and does not even need to be an actual annotation).
Andrey
November 21, 2022, 6:36pm
4
Here are the events available in DocumentViewer, some of them do contain coordinates from where this can be triggered: PDFTron WebViewer Class: DocumentViewer .
nick
November 21, 2022, 6:38pm
5
Oh cool, thanks! We’ll explore this direction.