When selecting a piece of content in a PDF, the popup menu allows the user to create a link. The initial selection of the text to annotation correctly creates an annotation for the highlight (or whatever) but adding a link to the annotation doesn’t trigger a resave so the link is lost after a page reload.
Expected behaviour
The saved data includes the link and the link continues working after a page reload.
Does your issue happen with every document, or just one?
It happens on every document I tried.
Links in PDFs are just annotations, and PDF.js Express does not support merging annotations into the document client side. To do this, you need to use our Rest API to merge the link annotations into the document.
Thanks for the reply Logan and apologies for being slow to get back to you.
What I was meaning is this: when a link is added or deleted, it seemed to me that the normal call annotationChanged even isn’t fired. I’m now seeing that it is fired, but the data is quite different.
I see from the API documentation that there are also parameters for widgets and fields. Would they default to false too (the documentation doesn’t say what the default is). I assume the member of our team who implemented this thought a simple exportAnnotations call would give everything relevant without extra parameters. Would you consider changing the defaults so you do get everything by default (I’m not sure why you wouldn’t want links etc).