Upgrade PDF.js - ckan/ckan GitHub Wiki

  • replace pdf.js file
  • remove the DEFAULT_URL from the viewer.js and all its usages
  • remove PDFJS.workerSrc since it is defined in pdf.html
  • move all content from document.addEventListener('DOMContentLoaded', function webViewerLoad(evt){...}) to the function loadPdfJsView in the viewer.js
  • upgrade the viewer.css
  • remove the position: absolute; from the #toolbarViewerLeft and #toolbarViewerRight since it causes issues in webkit
  • upgrade the html, don't forget to keep the data-module
  • try to work out the remaining issues (Sorry, it's not that easy)

Example commit: 850ffd72d4cc196c120b1b61f57611870f9c85f5