Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

pdfjs add custom event handler to viewer.js

// you can put anywhere in viewer.js (pdfjs/web/viewer.js) and listens to it
const event = document.createEvent("CustomEvent");
event.initCustomEvent("your_new_event", true, true, {});
document.dispatchEvent(event);
Source by github.com #
 
PREVIOUS NEXT
Tagged: #pdfjs #add #custom #event #handler
ADD COMMENT
Topic
Name
3+1 =