From aa381e8f8e187a6ee53d645aa5fafd303aa18bc7 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Fri, 15 Apr 2016 16:06:43 +0100 Subject: [PATCH] PDF.js version 1.4.239 - See mozilla/pdf.js@5c17df9f07116f45b5e2c8689128d1365a60823a --- bower.json | 2 +- build/pdf.combined.js | 8 ++++++-- build/pdf.js | 4 ++-- build/pdf.worker.js | 8 ++++++-- package.json | 2 +- 5 files changed, 16 insertions(+), 8 deletions(-) diff --git a/bower.json b/bower.json index 5bdfc7188..27ae5aede 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.4.237", + "version": "1.4.239", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index e927a8e54..9cf0de4f9 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.237'; -var pdfjsBuild = 'e9dbb23'; +var pdfjsVersion = '1.4.239'; +var pdfjsBuild = '5c17df9'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -21589,6 +21589,7 @@ var createObjectURL = sharedUtil.createObjectURL; var shadow = sharedUtil.shadow; var warn = sharedUtil.warn; var Dict = corePrimitives.Dict; +var isDict = corePrimitives.isDict; var Jbig2Image = coreJbig2.Jbig2Image; var JpegImage = coreJpg.JpegImage; var JpxImage = coreJpx.JpxImage; @@ -22230,6 +22231,9 @@ var FlateStream = (function FlateStreamClosure() { var PredictorStream = (function PredictorStreamClosure() { function PredictorStream(str, maybeLength, params) { + if (!isDict(params)) { + return str; // no prediction + } var predictor = this.predictor = params.get('Predictor') || 1; if (predictor <= 1) { diff --git a/build/pdf.js b/build/pdf.js index 32cce071a..df5d62966 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.237'; -var pdfjsBuild = 'e9dbb23'; +var pdfjsVersion = '1.4.239'; +var pdfjsBuild = '5c17df9'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? diff --git a/build/pdf.worker.js b/build/pdf.worker.js index ae7b6c3d4..e8aee9e03 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.237'; -var pdfjsBuild = 'e9dbb23'; +var pdfjsVersion = '1.4.239'; +var pdfjsBuild = '5c17df9'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -19709,6 +19709,7 @@ var createObjectURL = sharedUtil.createObjectURL; var shadow = sharedUtil.shadow; var warn = sharedUtil.warn; var Dict = corePrimitives.Dict; +var isDict = corePrimitives.isDict; var Jbig2Image = coreJbig2.Jbig2Image; var JpegImage = coreJpg.JpegImage; var JpxImage = coreJpx.JpxImage; @@ -20350,6 +20351,9 @@ var FlateStream = (function FlateStreamClosure() { var PredictorStream = (function PredictorStreamClosure() { function PredictorStream(str, maybeLength, params) { + if (!isDict(params)) { + return str; // no prediction + } var predictor = this.predictor = params.get('Predictor') || 1; if (predictor <= 1) { diff --git a/package.json b/package.json index 769abf6e8..c97748274 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.4.237", + "version": "1.4.239", "main": "build/pdf.js", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [