Breaking Change in Draw Annotation Format Between 22.1.0 and 23.1.1 #2892
IhebChemkhi
started this conversation in
General
Replies: 1 comment
-
I've run into this problem, and it's still driving me nuts. I don't have a solution. The annotation format has changed in a way I can't wrap my head around. That's why the "draw" demo has vanished from https://pdfviewer.net/extended-pdf-viewer/export-annotations. I hope someone else has more luck and tells us what to do! |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,


I've been working with version 22.1.0 of the library, where I saved annotations to my own database and re-injected them before loading the PDF file.
In that version, highlight annotations didn't work (attempting to add them caused errors). Other annotations (like draw/text) worked fine.. I recently updated to 23.1.1 after reading that highlight annotation issues were fixed. While that’s true (highlights now work), i ran into a new issue: draw annotations stopped working.
I noticed a change in the annotation structure between the two versions:
22.1.0 format:
23.1.1 format:
Now, this structure seems incompatible with the new version, and I’m getting the warning: Warning: paste: "r[e].map is not a function".
This is the type definition if it might help:
Has anyone else run into this? Any guidance on how to migrate the draw annotation structure properly would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions