فهرست منبع

PDF.js version 1.0.308

Yury Delendik 10 سال پیش
والد
کامیت
4a8e00741e
5فایلهای تغییر یافته به همراه28 افزوده شده و 12 حذف شده
  1. 1 1
      bower.json
  2. 12 4
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 12 4
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

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

+ 12 - 4
build/pdf.combined.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.306';
-PDFJS.build = '2da1942';
+PDFJS.version = '1.0.308';
+PDFJS.build = 'fc85cfd';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -9438,9 +9438,10 @@ var XRef = (function XRefClosure() {
       } else {
         xrefEntry = this.fetchCompressed(xrefEntry, suppressEncryption);
       }
-
-      if (isDict(xrefEntry)) {
+      if (isDict(xrefEntry)){
         xrefEntry.objId = 'R' + ref.num + '.' + ref.gen;
+      } else if (isStream(xrefEntry)) {
+        xrefEntry.dict.objId = 'R' + ref.num + '.' + ref.gen;
       }
       return xrefEntry;
     },
@@ -20092,6 +20093,13 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
           if (!isStream(xObject)) {
             continue;
           }
+          if (xObject.dict.objId) {
+            if (processed[xObject.dict.objId]) {
+              // stream has objId and is processed already
+              continue;
+            }
+            processed[xObject.dict.objId] = true;
+          }
           var xResources = xObject.dict.get('Resources');
           // Checking objId to detect an infinite loop.
           if (isDict(xResources) &&

+ 2 - 2
build/pdf.js

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

+ 12 - 4
build/pdf.worker.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.306';
-PDFJS.build = '2da1942';
+PDFJS.version = '1.0.308';
+PDFJS.build = 'fc85cfd';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -4931,9 +4931,10 @@ var XRef = (function XRefClosure() {
       } else {
         xrefEntry = this.fetchCompressed(xrefEntry, suppressEncryption);
       }
-
-      if (isDict(xrefEntry)) {
+      if (isDict(xrefEntry)){
         xrefEntry.objId = 'R' + ref.num + '.' + ref.gen;
+      } else if (isStream(xrefEntry)) {
+        xrefEntry.dict.objId = 'R' + ref.num + '.' + ref.gen;
       }
       return xrefEntry;
     },
@@ -15585,6 +15586,13 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
           if (!isStream(xObject)) {
             continue;
           }
+          if (xObject.dict.objId) {
+            if (processed[xObject.dict.objId]) {
+              // stream has objId and is processed already
+              continue;
+            }
+            processed[xObject.dict.objId] = true;
+          }
           var xResources = xObject.dict.get('Resources');
           // Checking objId to detect an infinite loop.
           if (isDict(xResources) &&

+ 1 - 1
package.json

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