API Documentation
Event Listening
MuPDF WebViewer can listen for the following events:
acroFieldChange
actionHistoryChange
annotationCreate
annotationModify
annotationRemove
annotationSelectionChange
annotationToolChange
currentPageIndexChange
currentReadingPageChange
customContextMenuExecute
documentDownload
documentSave
dragToolChange
keydown
keyup
mousedown
mouseup
pointerdown
pointerup
redactionCreate
redactionModify
redactionRemove
scaleChange
scrollPositionChange
sideViewClose
sideViewOpen
signatureCancel
signatureInsert
textSearchStart
tsaVerify
widgetMousedown
In order to register a listener just use the mupdf.addEventListener
method.