Pdf Bot 9 роки тому
батько
коміт
0b748056b3
5 змінених файлів з 12 додано та 8 видалено
  1. 1 1
      bower.json
  2. 4 2
      build/pdf.combined.js
  3. 4 2
      build/pdf.js
  4. 2 2
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

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

+ 4 - 2
build/pdf.combined.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.395';
-PDFJS.build = '78dbf56';
+PDFJS.version = '1.1.397';
+PDFJS.build = 'b11bc72';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -1873,6 +1873,8 @@ PDFJS.getDocument = function getDocument(src,
       } else if (typeof pdfBytes === 'object' && pdfBytes !== null &&
                  !isNaN(pdfBytes.length)) {
         params[key] = new Uint8Array(pdfBytes);
+      } else if (isArrayBuffer(pdfBytes)) {
+        params[key] = new Uint8Array(pdfBytes);
       } else {
         error('Invalid PDF binary data: either typed array, string or ' +
               'array-like object is expected in the data property.');

+ 4 - 2
build/pdf.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.395';
-PDFJS.build = '78dbf56';
+PDFJS.version = '1.1.397';
+PDFJS.build = 'b11bc72';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -1873,6 +1873,8 @@ PDFJS.getDocument = function getDocument(src,
       } else if (typeof pdfBytes === 'object' && pdfBytes !== null &&
                  !isNaN(pdfBytes.length)) {
         params[key] = new Uint8Array(pdfBytes);
+      } else if (isArrayBuffer(pdfBytes)) {
+        params[key] = new Uint8Array(pdfBytes);
       } else {
         error('Invalid PDF binary data: either typed array, string or ' +
               'array-like object is expected in the data property.');

+ 2 - 2
build/pdf.worker.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.395';
-PDFJS.build = '78dbf56';
+PDFJS.version = '1.1.397';
+PDFJS.build = 'b11bc72';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 1 - 1
package.json

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