var oAnnotMgr = readerControl.docViewer.getAnnotationManager();
1. Instantiate persistent WebViewer instance
1.1. Subscribe to 'annotationChanged' event
1.1.1. oAnnotMgr.on('annotationChanged', function(evt, aAnnotation, sAction) {return console.log('TRIGGERED');});
2. Open document with annotations
2.1. Initialise annotations via oAnnotMgr.importAnnotationsAsync(sXFPDF);
3. readerControl.docViewer.closeDocument();
4. Repeat #2 & #3
This event compounds/increments by each subsequent document open annotations, rather than reflect the current documents annotations.
PS. Historically, this event fires when document loads which is incorrect as they have not modified, we handle that with additional logic by inspecting the XFPDF.hash to see if it actually has changed.
We are not looking to patch this asap, however would be good to have your eyes on this.