Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

pdfjs customizing viewer.html js event handler

<script>
  // add this script block to viewer.html (pdfjs/web/viewer.html)
  document.addEventListener('DOMContentLoaded', function() {
    console.log('DOMContentLoaded');
  }, true);

  document.addEventListener('webviewerloaded', function(e) {
    console.log('webviewerloaded');
  });
</script>
Source by github.com #
 
PREVIOUS NEXT
Tagged: #pdfjs #customizing #js #event #handler
ADD COMMENT
Topic
Name
9+1 =