Detailed description of issue
I have been having issues with having a double annoation or a weird bold when downloading a document on a external button click.
Expected behaviour
{Provide a screenshot or description of the expected behaviour}
How are you re-opening the document? Do you see this issue when opening the document in other viewers?
If you are extracting and importing annotations on document load, you need to make sure you are passing the disableFlattenedAnnotations option to the PDF.js Express constructor. Not doing so will result in duplicate annotations like you are seeing.
This is how i am trying to download the document so first i grab what ever is on the previewer filedata that is on the previewer then re add the annotations. Which i am not to sure thats the right way of doing it.
I hope this answer the question. Sorry for being difficult.
You still have not answered my question about how you are loading the document after its been downloaded. Are you using the rest API to extract and load annotations when a document is loaded? What does your document loading code look like?
The reason this happens is usually because the annotations are being loaded twice - the ones baked into the document from the merge operation that you are doing, and another time when you load the document and extract and import the XFDF.
If you are using the rest API to extract and load annotations, then you need to provide the disableFlattenedAnnotations option.