|
|
@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PDFJS.version = '1.2.39'; |
|
|
|
PDFJS.version = '1.2.41'; |
|
|
|
PDFJS.build = '7e79ce4'; |
|
|
|
PDFJS.build = 'b56b415'; |
|
|
|
|
|
|
|
|
|
|
|
(function pdfjsWrapper() { |
|
|
|
(function pdfjsWrapper() { |
|
|
|
// Use strict in our context only - users might not want it
|
|
|
|
// Use strict in our context only - users might not want it
|
|
|
@ -2820,6 +2820,10 @@ var WorkerTransport = (function WorkerTransportClosure() { |
|
|
|
}, this); |
|
|
|
}, this); |
|
|
|
|
|
|
|
|
|
|
|
messageHandler.on('commonobj', function transportObj(data) { |
|
|
|
messageHandler.on('commonobj', function transportObj(data) { |
|
|
|
|
|
|
|
if (this.destroyed) { |
|
|
|
|
|
|
|
return; // Ignore any pending requests if the worker was terminated.
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var id = data[0]; |
|
|
|
var id = data[0]; |
|
|
|
var type = data[1]; |
|
|
|
var type = data[1]; |
|
|
|
if (this.commonObjs.hasData(id)) { |
|
|
|
if (this.commonObjs.hasData(id)) { |
|
|
@ -2856,6 +2860,10 @@ var WorkerTransport = (function WorkerTransportClosure() { |
|
|
|
}, this); |
|
|
|
}, this); |
|
|
|
|
|
|
|
|
|
|
|
messageHandler.on('obj', function transportObj(data) { |
|
|
|
messageHandler.on('obj', function transportObj(data) { |
|
|
|
|
|
|
|
if (this.destroyed) { |
|
|
|
|
|
|
|
return; // Ignore any pending requests if the worker was terminated.
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var id = data[0]; |
|
|
|
var id = data[0]; |
|
|
|
var pageIndex = data[1]; |
|
|
|
var pageIndex = data[1]; |
|
|
|
var type = data[2]; |
|
|
|
var type = data[2]; |
|
|
@ -2887,6 +2895,10 @@ var WorkerTransport = (function WorkerTransportClosure() { |
|
|
|
}, this); |
|
|
|
}, this); |
|
|
|
|
|
|
|
|
|
|
|
messageHandler.on('DocProgress', function transportDocProgress(data) { |
|
|
|
messageHandler.on('DocProgress', function transportDocProgress(data) { |
|
|
|
|
|
|
|
if (this.destroyed) { |
|
|
|
|
|
|
|
return; // Ignore any pending requests if the worker was terminated.
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var loadingTask = this.loadingTask; |
|
|
|
var loadingTask = this.loadingTask; |
|
|
|
if (loadingTask.onProgress) { |
|
|
|
if (loadingTask.onProgress) { |
|
|
|
loadingTask.onProgress({ |
|
|
|
loadingTask.onProgress({ |
|
|
@ -2897,6 +2909,10 @@ var WorkerTransport = (function WorkerTransportClosure() { |
|
|
|
}, this); |
|
|
|
}, this); |
|
|
|
|
|
|
|
|
|
|
|
messageHandler.on('PageError', function transportError(data) { |
|
|
|
messageHandler.on('PageError', function transportError(data) { |
|
|
|
|
|
|
|
if (this.destroyed) { |
|
|
|
|
|
|
|
return; // Ignore any pending requests if the worker was terminated.
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var page = this.pageCache[data.pageNum - 1]; |
|
|
|
var page = this.pageCache[data.pageNum - 1]; |
|
|
|
var intentState = page.intentStates[data.intent]; |
|
|
|
var intentState = page.intentStates[data.intent]; |
|
|
|
if (intentState.displayReadyCapability) { |
|
|
|
if (intentState.displayReadyCapability) { |
|
|
@ -2907,6 +2923,10 @@ var WorkerTransport = (function WorkerTransportClosure() { |
|
|
|
}, this); |
|
|
|
}, this); |
|
|
|
|
|
|
|
|
|
|
|
messageHandler.on('JpegDecode', function(data) { |
|
|
|
messageHandler.on('JpegDecode', function(data) { |
|
|
|
|
|
|
|
if (this.destroyed) { |
|
|
|
|
|
|
|
return Promise.reject('Worker was terminated'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var imageUrl = data[0]; |
|
|
|
var imageUrl = data[0]; |
|
|
|
var components = data[1]; |
|
|
|
var components = data[1]; |
|
|
|
if (components !== 3 && components !== 1) { |
|
|
|
if (components !== 3 && components !== 1) { |
|
|
@ -2946,7 +2966,7 @@ var WorkerTransport = (function WorkerTransportClosure() { |
|
|
|
}; |
|
|
|
}; |
|
|
|
img.src = imageUrl; |
|
|
|
img.src = imageUrl; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, this); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
fetchDocument: function WorkerTransport_fetchDocument(loadingTask, source) { |
|
|
|
fetchDocument: function WorkerTransport_fetchDocument(loadingTask, source) { |
|
|
|