Pdf Bot пре 9 година
родитељ
комит
69015436ea
5 измењених фајлова са 16 додато и 18 уклоњено
  1. 1 1
      bower.json
  2. 6 7
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 6 7
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

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

+ 6 - 7
build/pdf.combined.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.452';
-PDFJS.build = 'b360fd1';
+PDFJS.version = '1.1.454';
+PDFJS.build = '12b0b97';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -9523,12 +9523,11 @@ var PDFDocument = (function PDFDocumentClosure() {
       return shadow(this, 'documentInfo', docInfo);
     },
     get fingerprint() {
-      var xref = this.xref, idArray, hash, fileID = '';
+      var xref = this.xref, hash, fileID = '';
+      var idArray = xref.trailer.get('ID');
 
-      if (xref.trailer.has('ID')) {
-        idArray = xref.trailer.get('ID');
-      }
-      if (idArray && isArray(idArray) && idArray[0] !== EMPTY_FINGERPRINT) {
+      if (idArray && isArray(idArray) && idArray[0] && isString(idArray[0]) &&
+          idArray[0] !== EMPTY_FINGERPRINT) {
         hash = stringToBytes(idArray[0]);
       } else {
         if (this.stream.ensureRange) {

+ 2 - 2
build/pdf.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.452';
-PDFJS.build = 'b360fd1';
+PDFJS.version = '1.1.454';
+PDFJS.build = '12b0b97';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 6 - 7
build/pdf.worker.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.452';
-PDFJS.build = 'b360fd1';
+PDFJS.version = '1.1.454';
+PDFJS.build = '12b0b97';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -3066,12 +3066,11 @@ var PDFDocument = (function PDFDocumentClosure() {
       return shadow(this, 'documentInfo', docInfo);
     },
     get fingerprint() {
-      var xref = this.xref, idArray, hash, fileID = '';
+      var xref = this.xref, hash, fileID = '';
+      var idArray = xref.trailer.get('ID');
 
-      if (xref.trailer.has('ID')) {
-        idArray = xref.trailer.get('ID');
-      }
-      if (idArray && isArray(idArray) && idArray[0] !== EMPTY_FINGERPRINT) {
+      if (idArray && isArray(idArray) && idArray[0] && isString(idArray[0]) &&
+          idArray[0] !== EMPTY_FINGERPRINT) {
         hash = stringToBytes(idArray[0]);
       } else {
         if (this.stream.ensureRange) {

+ 1 - 1
package.json

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