Server Annotations Loaded Event

71 views
Skip to first unread message

David Collins

unread,
Jul 28, 2015, 12:15:58 PM7/28/15
to PDFTron WebViewer

Is there any event that is fired when annotations have been loaded successfully, or sometime after so that i could know that the call the server is complete?

Thanks,
David Collins
Message has been deleted

Anatoly Kudrevatukh

unread,
Jul 31, 2015, 7:33:49 PM7/31/15
to pdfnet-w...@googlegroups.com
Hello,

Listen to annotationChanged event being fired for the first time. That means the first annotation has been added to the document.

var annotManager = readerControl.docViewer.getAnnotationManager();
annotManager
.on('annotationChanged', function(e) {

});

Alternatively you could use 

it gets called when the initial annotations are loaded and lets you modify them if you want. At this moment annotations haven't actually been added to AnnotationManager yet.
Reply all
Reply to author
Forward
0 new messages