From 9e21e8941af7cd906507e375a5ff24fa09be0eca Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Wed, 3 Feb 2016 20:47:45 +0000 Subject: [PATCH] PDF.js version 1.4.42 - See mozilla/pdf.js@4c59712606e67bd66bb982dbb465117a3d349afb --- bower.json | 2 +- build/pdf.combined.js | 16 +++++++++++++--- build/pdf.js | 16 +++++++++++++--- build/pdf.worker.js | 4 ++-- package.json | 2 +- 5 files changed, 30 insertions(+), 10 deletions(-) diff --git a/bower.json b/bower.json index a3cd2a7bb..07261083e 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.4.39", + "version": "1.4.42", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 1261cc21b..eaab23de5 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -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. diff --git a/build/pdf.js b/build/pdf.js index a460f0baa..688730e3d 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {})); // 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 ? @@ -9281,6 +9281,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); + } } } @@ -9289,9 +9294,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(); @@ -9334,6 +9340,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. diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 960cc0235..0c61319f1 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {})); // 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 ? diff --git a/package.json b/package.json index f9dfc4dc1..8fd5750e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.4.39", + "version": "1.4.42", "main": "build/pdf.js", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [