-
|
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: 2 comments 2 replies
-
|
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 togehter 👋🏻 We are using This works as expected for geometry annotations (arrow, rectangle, line, etc.). However, for Free Text annotations (type: 3) the behavior is different:
So after saving again, the Free Text annotation loses its content and styling, while geometry annotations remain intact. Is this a known limitation of Free Text annotations when using |
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.