|
@@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {}));
|
|
|
// Use strict in our context only - users might not want it
|
|
|
'use strict';
|
|
|
|
|
|
-var pdfjsVersion = '1.4.39';
|
|
|
-var pdfjsBuild = '974433a';
|
|
|
+var pdfjsVersion = '1.4.42';
|
|
|
+var pdfjsBuild = '4c59712';
|
|
|
|
|
|
var pdfjsFilePath =
|
|
|
typeof document !== 'undefined' && document.currentScript ?
|
|
@@ -34410,6 +34410,11 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
|
|
|
function operatorListChanged() {
|
|
|
if (intentState.operatorList.lastChunk) {
|
|
|
intentState.opListReadCapability.resolve(intentState.operatorList);
|
|
|
+
|
|
|
+ var i = intentState.renderTasks.indexOf(opListTask);
|
|
|
+ if (i >= 0) {
|
|
|
+ intentState.renderTasks.splice(i, 1);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -34418,9 +34423,10 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
|
|
|
this.intentStates[renderingIntent] = Object.create(null);
|
|
|
}
|
|
|
var intentState = this.intentStates[renderingIntent];
|
|
|
+ var opListTask;
|
|
|
|
|
|
if (!intentState.opListReadCapability) {
|
|
|
- var opListTask = {};
|
|
|
+ opListTask = {};
|
|
|
opListTask.operatorListChanged = operatorListChanged;
|
|
|
intentState.receivingOperatorList = true;
|
|
|
intentState.opListReadCapability = createPromiseCapability();
|
|
@@ -34463,6 +34469,10 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
|
|
|
|
|
|
var waitOn = [];
|
|
|
Object.keys(this.intentStates).forEach(function(intent) {
|
|
|
+ if (intent === 'oplist') {
|
|
|
+ // Avoid errors below, since the renderTasks are just stubs.
|
|
|
+ return;
|
|
|
+ }
|
|
|
var intentState = this.intentStates[intent];
|
|
|
intentState.renderTasks.forEach(function(renderTask) {
|
|
|
var renderCompleted = renderTask.capability.promise.
|