From 6c8e6cbd01f4b51947a04dbbcde81e508d7d5abb Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Mon, 26 Jan 2015 18:11:08 +0000 Subject: [PATCH] PDF.js version 1.0.1110 --- bower.json | 2 +- build/pdf.combined.js | 9 ++++----- build/pdf.js | 4 ++-- build/pdf.worker.js | 9 ++++----- package.json | 2 +- 5 files changed, 12 insertions(+), 14 deletions(-) diff --git a/bower.json b/bower.json index 944ad532b..27f326df9 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.1108", + "version": "1.0.1110", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 2f75cc34c..d6b4aadc5 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.0.1108'; -PDFJS.build = '4294fb1'; +PDFJS.version = '1.0.1110'; +PDFJS.build = '40f9f77'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -44014,10 +44014,9 @@ var Jbig2Image = (function Jbig2ImageClosure() { // At each pixel: Clear contextLabel pixels that are shifted // out of the context, then add new ones. - // If j + n is out of range at the right image border, then - // the undefined value of bitmap[i - 2][j + n] is shifted to 0 contextLabel = ((contextLabel & OLD_PIXEL_MASK) << 1) | - (row2[j + 3] << 11) | (row1[j + 4] << 4) | pixel; + (j + 3 < width ? row2[j + 3] << 11 : 0) | + (j + 4 < width ? row1[j + 4] << 4 : 0) | pixel; } } diff --git a/build/pdf.js b/build/pdf.js index 8d0bfab2b..f00514f5c 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.0.1108'; -PDFJS.build = '4294fb1'; +PDFJS.version = '1.0.1110'; +PDFJS.build = '40f9f77'; (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 ea03a5c66..f441798cf 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.0.1108'; -PDFJS.build = '4294fb1'; +PDFJS.version = '1.0.1110'; +PDFJS.build = '40f9f77'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -37703,10 +37703,9 @@ var Jbig2Image = (function Jbig2ImageClosure() { // At each pixel: Clear contextLabel pixels that are shifted // out of the context, then add new ones. - // If j + n is out of range at the right image border, then - // the undefined value of bitmap[i - 2][j + n] is shifted to 0 contextLabel = ((contextLabel & OLD_PIXEL_MASK) << 1) | - (row2[j + 3] << 11) | (row1[j + 4] << 4) | pixel; + (j + 3 < width ? row2[j + 3] << 11 : 0) | + (j + 4 < width ? row1[j + 4] << 4 : 0) | pixel; } } diff --git a/package.json b/package.json index c9fdbbe2e..170598b7f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.1108", + "version": "1.0.1110", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",