(callback)
| 38 | } |
| 39 | |
| 40 | function init(callback) { |
| 41 | var pluginCSS; |
| 42 | |
| 43 | loadScript('./compatibility.js', function () { |
| 44 | loadScript('./pdf.js'); |
| 45 | loadScript('./ui_utils.js'); |
| 46 | loadScript('./text_layer_builder.js'); |
| 47 | loadScript('./pdfjsversion.js', callback); |
| 48 | }); |
| 49 | |
| 50 | pluginCSS = /**@type{!HTMLStyleElement}*/(document.createElementNS(document.head.namespaceURI, 'style')); |
| 51 | pluginCSS.setAttribute('media', 'screen, print, handheld, projection'); |
| 52 | pluginCSS.setAttribute('type', 'text/css'); |
| 53 | pluginCSS.appendChild(document.createTextNode(PDFViewerPlugin_css)); |
| 54 | document.head.appendChild(pluginCSS); |
| 55 | } |
| 56 | |
| 57 | var self = this, |
| 58 | pages = [], |
no test coverage detected