Browse Source

PDF.js version 1.0.680

master v1.0.680
Yury Delendik 11 years ago
parent
commit
159402bf90
  1. 2
      bower.json
  2. 47
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 47
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

47
build/pdf.combined.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.678'; PDFJS.version = '1.0.680';
PDFJS.build = '9b480d7'; PDFJS.build = '992e761';
(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
@ -35308,32 +35308,33 @@ var Parser = (function ParserClosure() {
// searching for the /EI\s/ // searching for the /EI\s/
var state = 0, ch, i, ii; var state = 0, ch, i, ii;
while (state !== 4 && (ch = stream.getByte()) !== -1) { var E = 0x45, I = 0x49, SPACE = 0x20, NL = 0xA, CR = 0xD;
switch (ch | 0) { while ((ch = stream.getByte()) !== -1) {
case 0x20: if (state === 0) {
case 0x0D: state = (ch === E) ? 1 : 0;
case 0x0A: } else if (state === 1) {
// let's check next five bytes to be ASCII... just be sure state = (ch === I) ? 2 : 0;
var followingBytes = stream.peekBytes(5); } else {
for (i = 0, ii = followingBytes.length; i < ii; i++) { assert(state === 2);
if (ch === SPACE || ch === NL || ch === CR) {
// Let's check the next five bytes are ASCII... just be sure.
var n = 5;
var followingBytes = stream.peekBytes(n);
for (i = 0; i < n; i++) {
ch = followingBytes[i]; ch = followingBytes[i];
if (ch !== 0x0A && ch !== 0x0D && (ch < 0x20 || ch > 0x7F)) { if (ch !== NL && ch !== CR && (ch < SPACE || ch > 0x7F)) {
// not a LF, CR, SPACE or any visible ASCII character // Not a LF, CR, SPACE or any visible ASCII character, i.e.
// it's binary stuff. Resetting the state.
state = 0; state = 0;
break; // some binary stuff found, resetting the state break;
} }
} }
state = (state === 3 ? 4 : 0); if (state === 2) {
break; break; // finished!
case 0x45: }
state = 2; } else {
break;
case 0x49:
state = (state === 2 ? 3 : 0);
break;
default:
state = 0; state = 0;
break; }
} }
} }

4
build/pdf.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.678'; PDFJS.version = '1.0.680';
PDFJS.build = '9b480d7'; PDFJS.build = '992e761';
(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

47
build/pdf.worker.js vendored

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.678'; PDFJS.version = '1.0.680';
PDFJS.build = '9b480d7'; PDFJS.build = '992e761';
(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
@ -29325,32 +29325,33 @@ var Parser = (function ParserClosure() {
// searching for the /EI\s/ // searching for the /EI\s/
var state = 0, ch, i, ii; var state = 0, ch, i, ii;
while (state !== 4 && (ch = stream.getByte()) !== -1) { var E = 0x45, I = 0x49, SPACE = 0x20, NL = 0xA, CR = 0xD;
switch (ch | 0) { while ((ch = stream.getByte()) !== -1) {
case 0x20: if (state === 0) {
case 0x0D: state = (ch === E) ? 1 : 0;
case 0x0A: } else if (state === 1) {
// let's check next five bytes to be ASCII... just be sure state = (ch === I) ? 2 : 0;
var followingBytes = stream.peekBytes(5); } else {
for (i = 0, ii = followingBytes.length; i < ii; i++) { assert(state === 2);
if (ch === SPACE || ch === NL || ch === CR) {
// Let's check the next five bytes are ASCII... just be sure.
var n = 5;
var followingBytes = stream.peekBytes(n);
for (i = 0; i < n; i++) {
ch = followingBytes[i]; ch = followingBytes[i];
if (ch !== 0x0A && ch !== 0x0D && (ch < 0x20 || ch > 0x7F)) { if (ch !== NL && ch !== CR && (ch < SPACE || ch > 0x7F)) {
// not a LF, CR, SPACE or any visible ASCII character // Not a LF, CR, SPACE or any visible ASCII character, i.e.
// it's binary stuff. Resetting the state.
state = 0; state = 0;
break; // some binary stuff found, resetting the state break;
} }
} }
state = (state === 3 ? 4 : 0); if (state === 2) {
break; break; // finished!
case 0x45: }
state = 2; } else {
break;
case 0x49:
state = (state === 2 ? 3 : 0);
break;
default:
state = 0; state = 0;
break; }
} }
} }

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.0.678", "version": "1.0.680",
"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