|
|
@ -3288,7 +3288,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { |
|
|
|
if (worker.destroyed) { |
|
|
|
if (worker.destroyed) { |
|
|
|
return Promise.reject(new Error('Worker was destroyed')); |
|
|
|
return Promise.reject(new Error('Worker was destroyed')); |
|
|
|
} |
|
|
|
} |
|
|
|
var apiVersion = '2.0.135'; |
|
|
|
var apiVersion = '2.0.137'; |
|
|
|
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange'); |
|
|
|
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange'); |
|
|
|
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch'); |
|
|
|
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch'); |
|
|
|
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream'); |
|
|
|
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream'); |
|
|
@ -3926,12 +3926,6 @@ var PDFWorker = function PDFWorkerClosure() { |
|
|
|
worker.terminate(); |
|
|
|
worker.terminate(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
messageHandler.on('console_log', function (data) { |
|
|
|
|
|
|
|
console.log.apply(console, data); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
messageHandler.on('console_error', function (data) { |
|
|
|
|
|
|
|
console.error.apply(console, data); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
messageHandler.on('ready', function (data) { |
|
|
|
messageHandler.on('ready', function (data) { |
|
|
|
worker.removeEventListener('error', onWorkerError); |
|
|
|
worker.removeEventListener('error', onWorkerError); |
|
|
|
if (_this6.destroyed) { |
|
|
|
if (_this6.destroyed) { |
|
|
@ -4651,8 +4645,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { |
|
|
|
}(); |
|
|
|
}(); |
|
|
|
var version, build; |
|
|
|
var version, build; |
|
|
|
{ |
|
|
|
{ |
|
|
|
exports.version = version = '2.0.135'; |
|
|
|
exports.version = version = '2.0.137'; |
|
|
|
exports.build = build = '617cb86a'; |
|
|
|
exports.build = build = '9e8cf448'; |
|
|
|
} |
|
|
|
} |
|
|
|
exports.getDocument = getDocument; |
|
|
|
exports.getDocument = getDocument; |
|
|
|
exports.LoopbackPort = LoopbackPort; |
|
|
|
exports.LoopbackPort = LoopbackPort; |
|
|
@ -7727,8 +7721,8 @@ exports.SVGGraphics = SVGGraphics; |
|
|
|
"use strict"; |
|
|
|
"use strict"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var pdfjsVersion = '2.0.135'; |
|
|
|
var pdfjsVersion = '2.0.137'; |
|
|
|
var pdfjsBuild = '617cb86a'; |
|
|
|
var pdfjsBuild = '9e8cf448'; |
|
|
|
var pdfjsSharedUtil = __w_pdfjs_require__(0); |
|
|
|
var pdfjsSharedUtil = __w_pdfjs_require__(0); |
|
|
|
var pdfjsDisplayGlobal = __w_pdfjs_require__(113); |
|
|
|
var pdfjsDisplayGlobal = __w_pdfjs_require__(113); |
|
|
|
var pdfjsDisplayAPI = __w_pdfjs_require__(57); |
|
|
|
var pdfjsDisplayAPI = __w_pdfjs_require__(57); |
|
|
@ -8051,72 +8045,6 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) { |
|
|
|
enumerable: true |
|
|
|
enumerable: true |
|
|
|
}); |
|
|
|
}); |
|
|
|
})(); |
|
|
|
})(); |
|
|
|
(function checkWorkerConsoleCompatibility() { |
|
|
|
|
|
|
|
if (typeof importScripts === 'undefined' || 'console' in globalScope) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var consoleTimer = {}; |
|
|
|
|
|
|
|
var workerConsole = { |
|
|
|
|
|
|
|
log: function log() { |
|
|
|
|
|
|
|
var args = Array.prototype.slice.call(arguments); |
|
|
|
|
|
|
|
globalScope.postMessage({ |
|
|
|
|
|
|
|
targetName: 'main', |
|
|
|
|
|
|
|
action: 'console_log', |
|
|
|
|
|
|
|
data: args |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
error: function error() { |
|
|
|
|
|
|
|
var args = Array.prototype.slice.call(arguments); |
|
|
|
|
|
|
|
globalScope.postMessage({ |
|
|
|
|
|
|
|
targetName: 'main', |
|
|
|
|
|
|
|
action: 'console_error', |
|
|
|
|
|
|
|
data: args |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
time: function time(name) { |
|
|
|
|
|
|
|
consoleTimer[name] = Date.now(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
timeEnd: function timeEnd(name) { |
|
|
|
|
|
|
|
var time = consoleTimer[name]; |
|
|
|
|
|
|
|
if (!time) { |
|
|
|
|
|
|
|
throw new Error('Unknown timer name ' + name); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.log('Timer:', name, Date.now() - time); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
globalScope.console = workerConsole; |
|
|
|
|
|
|
|
})(); |
|
|
|
|
|
|
|
(function checkConsoleCompatibility() { |
|
|
|
|
|
|
|
if (!hasDOM) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (!('console' in window)) { |
|
|
|
|
|
|
|
window.console = { |
|
|
|
|
|
|
|
log: function log() {}, |
|
|
|
|
|
|
|
error: function error() {}, |
|
|
|
|
|
|
|
warn: function warn() {} |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (!('bind' in console.log)) { |
|
|
|
|
|
|
|
console.log = function (fn) { |
|
|
|
|
|
|
|
return function (msg) { |
|
|
|
|
|
|
|
return fn(msg); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
}(console.log); |
|
|
|
|
|
|
|
console.error = function (fn) { |
|
|
|
|
|
|
|
return function (msg) { |
|
|
|
|
|
|
|
return fn(msg); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
}(console.error); |
|
|
|
|
|
|
|
console.warn = function (fn) { |
|
|
|
|
|
|
|
return function (msg) { |
|
|
|
|
|
|
|
return fn(msg); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
}(console.warn); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
})(); |
|
|
|
|
|
|
|
(function checkOnClickCompatibility() { |
|
|
|
(function checkOnClickCompatibility() { |
|
|
|
function ignoreIfTargetDisabled(event) { |
|
|
|
function ignoreIfTargetDisabled(event) { |
|
|
|
if (isDisabled(event.target)) { |
|
|
|
if (isDisabled(event.target)) { |
|
|
@ -13303,8 +13231,8 @@ if (!_global_scope2.default.PDFJS) { |
|
|
|
} |
|
|
|
} |
|
|
|
var PDFJS = _global_scope2.default.PDFJS; |
|
|
|
var PDFJS = _global_scope2.default.PDFJS; |
|
|
|
{ |
|
|
|
{ |
|
|
|
PDFJS.version = '2.0.135'; |
|
|
|
PDFJS.version = '2.0.137'; |
|
|
|
PDFJS.build = '617cb86a'; |
|
|
|
PDFJS.build = '9e8cf448'; |
|
|
|
} |
|
|
|
} |
|
|
|
PDFJS.pdfBug = false; |
|
|
|
PDFJS.pdfBug = false; |
|
|
|
if (PDFJS.verbosity !== undefined) { |
|
|
|
if (PDFJS.verbosity !== undefined) { |
|
|
|