Extract and Reapply annotation #3008
Shivam3062
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
@calixteman I'm using your copy-and-paste mechanism to create an API to export an import the annotations created by the editors. As far as I remember, copying and pasting only works when the ids are removed. Now @Shivam3062 needs the id for their purposes. Do you have any idea how to solve the issue? Come to think of it - is the idea feasible at all? When saving the PDF file, the editor annotations are merged with the regular annotations, so when the user loads the PDF later, there's no editor annotation left. Is this correct? |
Beta Was this translation helpful? Give feedback.
2 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.
-
I’m working on integrating your PDF viewer into my application and would like to implement the following functionality:
Fetching and storing annotations: I want to fetch all annotations from the viewer, store them in my database, and then reapply them when the PDF is loaded again.
Updating existing annotations: If a user modifies an annotation, I want to update the corresponding record in the database.
I’m facing two main challenges:
Since annotations don’t seem to have a unique identifier, how can I track each individual annotation after reapplying them, so updates can be applied correctly?
I’m unable to reapply all annotations across all pages in one go—currently, it only seems to work partially.
Could you please guide me on the best approach or API methods to achieve this functionality?
Beta Was this translation helpful? Give feedback.
All reactions