-
|
Hi 👋, I’m using EmbedPDF and would like to load existing annotations dynamically from my database (e.g., highlights, comments, shapes, etc.). Is there a way to inject or restore annotations programmatically after initializing the viewer? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @limaho, Yes that is certainly possible, for React you can read about it here: There is a function: Are you planning to use the React or Vue? or the PDF Snippet? The PDF snippet is lacking documentation and will try to get to that as soon as possible. |
Beta Was this translation helpful? Give feedback.
Hi @limaho,
Yes that is certainly possible, for React you can read about it here:
https://www.embedpdf.com/docs/react/plugins/plugin-annotation.
For Vue:
https://www.embedpdf.com/docs/vue/plugins/plugin-annotation
There is a function:
importAnnotations(..) | Imports an array of annotations into the viewer.
Are you planning to use the React or Vue? or the PDF Snippet?
The PDF snippet is lacking documentation and will try to get to that as soon as possible.