2
0
Yury Delendik 10 жил өмнө
parent
commit
8a12b3e3ca

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.0.131",
+  "version": "1.0.133",
   "keywords": [
     "Mozilla",
     "pdf",

+ 7 - 2
build/pdf.combined.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.131';
-PDFJS.build = 'f0043f8';
+PDFJS.version = '1.0.133';
+PDFJS.build = 'f8b3444';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -10685,6 +10685,11 @@ var XRef = (function XRefClosure() {
       // The parser goes through the entire stream << ... >> and provides
       // a getter interface for the key-value table
       var dict = parser.getObj();
+
+      // The pdflib PDF generator can generate a nested trailer dictionary
+      if (!isDict(dict) && dict.dict) {
+        dict = dict.dict;
+      }
       if (!isDict(dict)) {
         error('Invalid XRef table: could not parse trailer dictionary');
       }

+ 2 - 2
build/pdf.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.131';
-PDFJS.build = 'f0043f8';
+PDFJS.version = '1.0.133';
+PDFJS.build = 'f8b3444';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 7 - 2
build/pdf.worker.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.131';
-PDFJS.build = 'f0043f8';
+PDFJS.version = '1.0.133';
+PDFJS.build = 'f8b3444';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -6104,6 +6104,11 @@ var XRef = (function XRefClosure() {
       // The parser goes through the entire stream << ... >> and provides
       // a getter interface for the key-value table
       var dict = parser.getObj();
+
+      // The pdflib PDF generator can generate a nested trailer dictionary
+      if (!isDict(dict) && dict.dict) {
+        dict = dict.dict;
+      }
       if (!isDict(dict)) {
         error('Invalid XRef table: could not parse trailer dictionary');
       }

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.0.131",
+  "version": "1.0.133",
   "description": "Generic build of Mozilla's PDF.js library.",
   "keywords": [
     "Mozilla",