(function() {
$(document).bind("documentLoaded", function(event) {
readerControl.docViewer.getAnnotationManager().on('annotationChanged', function(e, annotations) {
if (e.imported) {
// annotations from the source document or from server
annotations.forEach(function(annot) {
console.log(annot);
});
}});
});
})();