Browse Source

PDF.js version 1.6.214 - See mozilla/pdf.js@7b2a9ee4e065e45f2bfaa3cd68ca69e1e4f610f5

Pdf Bot 8 years ago
parent
commit
3db2faf256
5 changed files with 16 additions and 10 deletions
  1. 1 1
      bower.json
  2. 6 3
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 6 3
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
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"

+ 6 - 3
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);
       }

+ 2 - 2
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 ?

+ 6 - 3
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);
       }

+ 1 - 1
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": [