From a87ee8b06196edd585cb862b4f44c81a0d74ba72 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Mon, 22 Sep 2014 16:25:15 -0500 Subject: [PATCH] PDF.js version 1.0.300 --- bower.json | 2 +- build/pdf.combined.js | 7 +++++-- build/pdf.js | 4 ++-- build/pdf.worker.js | 7 +++++-- package.json | 2 +- 5 files changed, 14 insertions(+), 8 deletions(-) diff --git a/bower.json b/bower.json index 261eaf387..e4a6721c1 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.298", + "version": "1.0.300", "keywords": [ "Mozilla", "pdf", diff --git a/build/pdf.combined.js b/build/pdf.combined.js index e7ce1707d..7dc8666c2 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.298'; -PDFJS.build = '75e1158'; +PDFJS.version = '1.0.300'; +PDFJS.build = '9308b52'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -42939,6 +42939,9 @@ var JpegImage = (function jpegImage() { } function receiveAndExtend(length) { + if (length === 1) { + return readBit() === 1 ? 1 : -1; + } var n = receive(length); if (n >= 1 << (length - 1)) { return n; diff --git a/build/pdf.js b/build/pdf.js index 35c0fdb4a..7756e96eb 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.298'; -PDFJS.build = '75e1158'; +PDFJS.version = '1.0.300'; +PDFJS.build = '9308b52'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 8c66ffabb..e78a41475 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.298'; -PDFJS.build = '75e1158'; +PDFJS.version = '1.0.300'; +PDFJS.build = '9308b52'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -38432,6 +38432,9 @@ var JpegImage = (function jpegImage() { } function receiveAndExtend(length) { + if (length === 1) { + return readBit() === 1 ? 1 : -1; + } var n = receive(length); if (n >= 1 << (length - 1)) { return n; diff --git a/package.json b/package.json index 9cb55eecc..734e10592 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.298", + "version": "1.0.300", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",