Status callback


Annotation has feature to add status in the notes panel. Is there any callback available on status change or a way to add custom callback ?


This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately by e-mail or phone and delete it from their system without making any copies or disclosing it to a third person. BRIDGEi2i Analytics Solutions reserves the right to store, monitor and review the content of all messages sent to or from this email address.


You can listen to the “annotationChanged” event like the following

// your configurations
}, document.getElementById(‘viewer’))
.then(instance => {
const { Tools, annotManager, docViewer, Annotations } = instance;
const displayMode = docViewer.getDisplayModeManager().getDisplayMode();

annotManager.on(‘annotationChanged’, (annots, action, options) => {
if (!options.imported && action === ‘add’ && annots[0].InReplyTo) {
// “InReplyTo” is the “Id” of the parent annotation that status changed
const annot = annotManager.getAnnotationById(annots[0].InReplyTo);
const newStatus = annot.getStatus();

Please let me know if the above helps or if you have any other questions

Best Regards,

Andrew Yip
Software Developer
PDFTron Systems, Inc.