瀏覽代碼

PDF.js version 1.1.529

Pdf Bot 9 年之前
父節點
當前提交
74377ba3c2
共有 5 個文件被更改,包括 14 次插入12 次删除
  1. 1 1
      bower.json
  2. 5 4
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 5 4
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.1.527",
+  "version": "1.1.529",
   "main": [
     "build/pdf.js",
     "build/pdf.worker.js"

+ 5 - 4
build/pdf.combined.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.527';
-PDFJS.build = '2096a2a';
+PDFJS.version = '1.1.529';
+PDFJS.build = 'd1d81de';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -9714,7 +9714,8 @@ var Dict = (function DictClosure() {
     // Same as get(), but dereferences all elements if the result is an Array.
     getArray: function Dict_getArray(key1, key2, key3) {
       var value = this.get(key1, key2, key3);
-      if (!isArray(value)) {
+      var xref = this.xref;
+      if (!isArray(value) || !xref) {
         return value;
       }
       value = value.slice(); // Ensure that we don't modify the Dict data.
@@ -9722,7 +9723,7 @@ var Dict = (function DictClosure() {
         if (!isRef(value[i])) {
           continue;
         }
-        value[i] = this.xref.fetch(value[i]);
+        value[i] = xref.fetch(value[i]);
       }
       return value;
     },

+ 2 - 2
build/pdf.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.527';
-PDFJS.build = '2096a2a';
+PDFJS.version = '1.1.529';
+PDFJS.build = 'd1d81de';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 5 - 4
build/pdf.worker.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.527';
-PDFJS.build = '2096a2a';
+PDFJS.version = '1.1.529';
+PDFJS.build = 'd1d81de';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -3258,7 +3258,8 @@ var Dict = (function DictClosure() {
     // Same as get(), but dereferences all elements if the result is an Array.
     getArray: function Dict_getArray(key1, key2, key3) {
       var value = this.get(key1, key2, key3);
-      if (!isArray(value)) {
+      var xref = this.xref;
+      if (!isArray(value) || !xref) {
         return value;
       }
       value = value.slice(); // Ensure that we don't modify the Dict data.
@@ -3266,7 +3267,7 @@ var Dict = (function DictClosure() {
         if (!isRef(value[i])) {
           continue;
         }
-        value[i] = this.xref.fetch(value[i]);
+        value[i] = xref.fetch(value[i]);
       }
       return value;
     },

+ 1 - 1
package.json

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