Browse Source

PDF.js version 1.0.219

master v1.0.219
Yury Delendik 10 years ago
parent
commit
95a1f9a47b
  1. 2
      bower.json
  2. 93
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 93
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.0.217", "version": "1.0.219",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",
"pdf", "pdf",

93
build/pdf.combined.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.217'; PDFJS.version = '1.0.219';
PDFJS.build = '37a6aac'; PDFJS.build = 'c0419d7';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -45500,7 +45500,7 @@ var Jbig2Image = (function Jbig2ImageClosure() {
if (id in this) { if (id in this) {
return this[id]; return this[id];
} }
return (this[id] = new Int8Array(1<<16)); return (this[id] = new Int8Array(1 << 16));
} }
}; };
@ -45525,69 +45525,32 @@ var Jbig2Image = (function Jbig2ImageClosure() {
// A.2 Procedure for decoding values // A.2 Procedure for decoding values
function decodeInteger(contextCache, procedure, decoder) { function decodeInteger(contextCache, procedure, decoder) {
var contexts = contextCache.getContexts(procedure); var contexts = contextCache.getContexts(procedure);
var prev = 1; var prev = 1;
var state = 1, v = 0, s;
var toRead = 32, offset = 4436; // defaults for state 7 function readBits(length) {
while (state) { var v = 0;
var bit = decoder.readBit(contexts, prev); for (var i = 0; i < length; i++) {
prev = (prev < 256 ? (prev << 1) | bit : var bit = decoder.readBit(contexts, prev);
(((prev << 1) | bit) & 511) | 256); prev = (prev < 256 ? (prev << 1) | bit :
switch (state) { (((prev << 1) | bit) & 511) | 256);
case 1: v = (v << 1) | bit;
s = !!bit; }
break; return v >>> 0;
case 2: }
if (bit) {
break; var sign = readBits(1);
} var value = readBits(1) ?
state = 7; (readBits(1) ?
toRead = 2; (readBits(1) ?
offset = 0; (readBits(1) ?
break; (readBits(1) ?
case 3: (readBits(32) + 4436) :
if (bit) { readBits(12) + 340) :
break; readBits(8) + 84) :
} readBits(6) + 20) :
state = 7; readBits(4) + 4) :
toRead = 4; readBits(2);
offset = 4; return (sign === 0 ? value : (value > 0 ? -value : null));
break;
case 4:
if (bit) {
break;
}
state = 7;
toRead = 6;
offset = 20;
break;
case 5:
if (bit) {
break;
}
state = 7;
toRead = 8;
offset = 84;
break;
case 6:
if (bit) {
break;
}
state = 7;
toRead = 12;
offset = 340;
break;
default:
v = ((v << 1) | bit) >>> 0;
if (--toRead === 0) {
state = 0;
}
continue;
}
state++;
}
v += offset;
return (!s ? v : (v > 0 ? -v : null));
} }
// A.3 The IAID decoding procedure // A.3 The IAID decoding procedure

4
build/pdf.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.217'; PDFJS.version = '1.0.219';
PDFJS.build = '37a6aac'; PDFJS.build = 'c0419d7';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it

93
build/pdf.worker.js vendored

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.217'; PDFJS.version = '1.0.219';
PDFJS.build = '37a6aac'; PDFJS.build = 'c0419d7';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -40907,7 +40907,7 @@ var Jbig2Image = (function Jbig2ImageClosure() {
if (id in this) { if (id in this) {
return this[id]; return this[id];
} }
return (this[id] = new Int8Array(1<<16)); return (this[id] = new Int8Array(1 << 16));
} }
}; };
@ -40932,69 +40932,32 @@ var Jbig2Image = (function Jbig2ImageClosure() {
// A.2 Procedure for decoding values // A.2 Procedure for decoding values
function decodeInteger(contextCache, procedure, decoder) { function decodeInteger(contextCache, procedure, decoder) {
var contexts = contextCache.getContexts(procedure); var contexts = contextCache.getContexts(procedure);
var prev = 1; var prev = 1;
var state = 1, v = 0, s;
var toRead = 32, offset = 4436; // defaults for state 7 function readBits(length) {
while (state) { var v = 0;
var bit = decoder.readBit(contexts, prev); for (var i = 0; i < length; i++) {
prev = (prev < 256 ? (prev << 1) | bit : var bit = decoder.readBit(contexts, prev);
(((prev << 1) | bit) & 511) | 256); prev = (prev < 256 ? (prev << 1) | bit :
switch (state) { (((prev << 1) | bit) & 511) | 256);
case 1: v = (v << 1) | bit;
s = !!bit; }
break; return v >>> 0;
case 2: }
if (bit) {
break; var sign = readBits(1);
} var value = readBits(1) ?
state = 7; (readBits(1) ?
toRead = 2; (readBits(1) ?
offset = 0; (readBits(1) ?
break; (readBits(1) ?
case 3: (readBits(32) + 4436) :
if (bit) { readBits(12) + 340) :
break; readBits(8) + 84) :
} readBits(6) + 20) :
state = 7; readBits(4) + 4) :
toRead = 4; readBits(2);
offset = 4; return (sign === 0 ? value : (value > 0 ? -value : null));
break;
case 4:
if (bit) {
break;
}
state = 7;
toRead = 6;
offset = 20;
break;
case 5:
if (bit) {
break;
}
state = 7;
toRead = 8;
offset = 84;
break;
case 6:
if (bit) {
break;
}
state = 7;
toRead = 12;
offset = 340;
break;
default:
v = ((v << 1) | bit) >>> 0;
if (--toRead === 0) {
state = 0;
}
continue;
}
state++;
}
v += offset;
return (!s ? v : (v > 0 ? -v : null));
} }
// A.3 The IAID decoding procedure // A.3 The IAID decoding procedure

2
package.json

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

Loading…
Cancel
Save