-
Notifications
You must be signed in to change notification settings - Fork 1
Upgrade PDF.js
Dominik Moritz edited this page Jun 9, 2013
·
5 revisions
- replace pdf.js file
- remove the
DEFAULT_URL
from the viewer.js and all its usages - remove
PDFJS.workerSrc
since it is defined inpdf.html
- move all content from
document.addEventListener('DOMContentLoaded', function webViewerLoad(evt){...})
to the functionloadPdfJsView
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