Browse Source

PDF.js version 1.0.1110

Pdf Bot 10 years ago
parent
commit
6c8e6cbd01
5 changed files with 12 additions and 14 deletions
  1. 1 1
      bower.json
  2. 4 5
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 4 5
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
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"

+ 4 - 5
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;
       }
     }
 

+ 2 - 2
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

+ 4 - 5
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;
       }
     }
 

+ 1 - 1
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",