diff --git a/bower.json b/bower.json index 845b94bbe..2cc1726ef 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.6.212", + "version": "1.6.214", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index f772dfe05..08c32c1bc 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.6.212'; -var pdfjsBuild = 'b4a9012'; +var pdfjsVersion = '1.6.214'; +var pdfjsBuild = '7b2a9ee'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -29529,7 +29529,10 @@ var Parser = (function ParserClosure() { return stream; }, makeFilter: function Parser_makeFilter(stream, name, maybeLength, params) { - if (stream.dict.get('Length') === 0 && !maybeLength) { + // Since the 'Length' entry in the stream dictionary can be completely + // wrong, e.g. zero for non-empty streams, only skip parsing the stream + // when we can be absolutely certain that it actually is empty. + if (maybeLength === 0) { warn('Empty "' + name + '" stream.'); return new NullStream(stream); } diff --git a/build/pdf.js b/build/pdf.js index 945a15f9d..27f7ed612 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.6.212'; -var pdfjsBuild = 'b4a9012'; +var pdfjsVersion = '1.6.214'; +var pdfjsBuild = '7b2a9ee'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? diff --git a/build/pdf.worker.js b/build/pdf.worker.js index eb0ecaee3..4695aa44a 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.6.212'; -var pdfjsBuild = 'b4a9012'; +var pdfjsVersion = '1.6.214'; +var pdfjsBuild = '7b2a9ee'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -25636,7 +25636,10 @@ var Parser = (function ParserClosure() { return stream; }, makeFilter: function Parser_makeFilter(stream, name, maybeLength, params) { - if (stream.dict.get('Length') === 0 && !maybeLength) { + // Since the 'Length' entry in the stream dictionary can be completely + // wrong, e.g. zero for non-empty streams, only skip parsing the stream + // when we can be absolutely certain that it actually is empty. + if (maybeLength === 0) { warn('Empty "' + name + '" stream.'); return new NullStream(stream); } diff --git a/package.json b/package.json index 3fe6289dc..d603cb5c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.6.212", + "version": "1.6.214", "main": "build/pdf.js", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [