From 0b748056b3e2ce4821821e8f239f6eaf060ba81b Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Thu, 20 Aug 2015 13:03:02 +0100 Subject: [PATCH] PDF.js version 1.1.397 --- bower.json | 2 +- build/pdf.combined.js | 6 ++++-- build/pdf.js | 6 ++++-- build/pdf.worker.js | 4 ++-- package.json | 2 +- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/bower.json b/bower.json index 706ad3fda..2c1bf4f97 100644 --- a/bower.json +++ b/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" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 8c0c7063f..6410de576 100644 --- a/build/pdf.combined.js +++ b/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.'); diff --git a/build/pdf.js b/build/pdf.js index ed419ab09..9afa969a2 100644 --- a/build/pdf.js +++ b/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.'); diff --git a/build/pdf.worker.js b/build/pdf.worker.js index f8cc3f18e..58b6c86e6 100644 --- a/build/pdf.worker.js +++ b/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 diff --git a/package.json b/package.json index 27ddca85b..54582c8c1 100644 --- a/package.json +++ b/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",