Imported Annotations are gone after switching pdf tabs

Product: Platform Web

WebViewer Version: 10.7.3

Can you reproduce using one of our samples or online demos?
No - maybe if you combine a demo view with export/import an tabs
Are you using the WebViewer server?
No
Does the issue only happen on certain browsers?
No - Chrome/Opera/Firefox
Is your issue related to annotations?
Yes - export/import differnt measurement annotations

Please give a brief summary of your issue:

Hello,
if I import annotations into a PDF with TabViewer and switch between tabs the imported annotations are gone.

Please describe your issue and provide steps to reproduce it:

I tried to export and import via file for annotaions and xfdf.
Also tried to hold the instance of the annotation and import it directly.
The annotations are shown correctly.
But after switching tabs the annotations disappeared.
I also tried replacing guid names for the XFDF data with new guids. Same behavior - the annotations disappeared after switching tabs.

What works is saving the file and open it again.

Please provide a link to a minimal sample where the issue is reproducible:

enableMultiViewerMode: true,
//...
// Tab 1 -> copy Annots by id or selected
async copyAnnots(ids) {
    //...
    // annotations = this.instance.Core.annotationManager.getSelectedAnnotations();
    var annotations = []
    this.instance.Core.annotationManager.getAnnotationsList()
    .forEach((annot) => {
      if (queryIds.includes(annot.Id)) {
        annotations.push(annot);
      }
    });   

    this.globalXFDF = await this.instance.Core.annotationManager
    .exportAnnotations({
      annotationList: annotations,
      // different options tested 
      widgets: false,
      links: false,
      fields: false,
      generateInlineAppearances: true,
      useDisplayAuthor: true,
    })
    .then(async (xfdfStrings) => {
      return xfdfStrings;
    });
    //...
}
//...
// Tab 2 -> paste - works inside the tab but not change
async pasteAnnots() {
    //...
    var annotations = await this.instance.Core.annotationManager
    //.importAnnotationCommand(globalXFDF)
    // importAnnotationCommand and importAnnotations
    .importAnnotations()
    .then(async (annotation) => {
      this.instance.Core.annotationManager.drawAnnotationsFromList(annotation);
      return annotation;
    });
    // tested different redraw methods. redraw per page and so on
    //annotations.forEach((annotation) => {
    //this.instance.Core.annotationManager.redrawAnnotation(annotation);
    //});
    //this.instance.Core.annotationManager.drawAnnotations({pageNumber:1})
  //...
}
//...

Thank you for posting the incident to our forum. We will provide you with an update as soon as possible.

Hi there,

I was able to reproduce this issue on my end. I have submitted a report to the product team about the annotations disappearing after switching tabs. Thank you for reporting this.

Best Regards,
Darian

Hello,

perfect, no problem. Let me know if anything new comes up here.

–Cheers