Please give a brief summary of your issue:
I would like to add an icon to certain text annotations, it should be a sibling element to the actual tag inside the text annotation
I’m interested to know: What’s the best approach for doing this?
I recommend taking a look at the AnnotationManager annotationsDrawn event. Instead of trying to update all annotations at once, you can listen for draw events fired when a page’s annotations are drawn to the canvas. The event gives you the page number so you’d have to filter annotations by page number and update accordingly.
Let me know how this works!
Best Regards,
Adam Sinclair
Software Developer
PDFTron Systems, Inc.