Match annotations with comments #20348
Replies: 1 comment
-
|
Is there anyone that knows how this works perhaps? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm currently having some issues with a custom comment component based on annotations. I want to annotate the PDF and based on those annotations add comments. Since I can't figure out how to use the comment sidebar functionality I am creating my own.
It works fine but the main thing is how to match the correct annotation with the correct comment. Simply using the PDFJS_INTERNAL_ID wouldn't suffice since my annotations can exists on the AnnotationLayer and the AnnotationEditorLayer. Since the ids aren't the same on these layers i'm having trouble matching the annotations with the comments.
Another solution would be to match based on the RECT of these annotations, but this feels hacky. Is there a resource within PFDjs that would help me with this?
Beta Was this translation helpful? Give feedback.
All reactions