WebViewer Version: 8.7.0
“No” to all of these questions:
- Do you have an issue with a specific file(s)?
- Can you reproduce using one of our samples or online demos?
- Are you using the WebViewer server?
- Does the issue only happen on certain browsers?
- Is your issue related to a front-end framework?
Is your issue related to annotations? Yes
We’re experiencing issues in which previously deleted annotations are incorrectly reappearing in this flow:
- add two annotations (A and B), and persist them to the database
- re-open document
- import annotations via
annotationManager.importAnnotations
- delete annotation A
- update annotation B
- annotation A incorrectly reappears
This is roughly how we import persisted annotations (in step #3 above):
const importedAnnotations = await Promise.all(
loadedAnnotations.map(async (loadedAnnotation) => {
const importResult = (await annotationManager.importAnnotations(
loadedAnnotation.xfdf
)) as PDFTronAnnotation[];
return importResult[0];
})
);
await annotationManager.drawAnnotationsFromList(
compact(importedAnnotations)
);