Browse Source

PDF.js version 1.1.286

master v1.1.286
Pdf Bot 10 years ago
parent
commit
d6622c9612
  1. 2
      bower.json
  2. 21
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 21
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.1.284", "version": "1.1.286",
"main": [ "main": [
"build/pdf.js", "build/pdf.js",
"build/pdf.worker.js" "build/pdf.worker.js"

21
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.1.284'; PDFJS.version = '1.1.286';
PDFJS.build = '535b7c2'; PDFJS.build = 'dde3e4a';
(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
@ -36870,6 +36870,16 @@ var Parser = (function ParserClosure() {
this.buf2 = this.lexer.getObj(); this.buf2 = this.lexer.getObj();
} }
}, },
tryShift: function Parser_tryShift() {
try {
this.shift();
return true;
} catch (e) {
// Upon failure, the caller should reset this.lexer.pos to a known good
// state and call this.shift() twice to reset the buffers.
return false;
}
},
getObj: function Parser_getObj(cipherTransform) { getObj: function Parser_getObj(cipherTransform) {
var buf1 = this.buf1; var buf1 = this.buf1;
this.shift(); this.shift();
@ -37243,9 +37253,10 @@ var Parser = (function ParserClosure() {
stream.pos = pos + length; stream.pos = pos + length;
lexer.nextChar(); lexer.nextChar();
this.shift(); // '>>' // Shift '>>' and check whether the new object marks the end of the stream
this.shift(); // 'stream' if (this.tryShift() && isCmd(this.buf2, 'endstream')) {
if (!isCmd(this.buf1, 'endstream')) { this.shift(); // 'stream'
} else {
// bad stream length, scanning for endstream // bad stream length, scanning for endstream
stream.pos = pos; stream.pos = pos;
var SCAN_BLOCK_SIZE = 2048; var SCAN_BLOCK_SIZE = 2048;

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.1.284'; PDFJS.version = '1.1.286';
PDFJS.build = '535b7c2'; PDFJS.build = 'dde3e4a';
(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

21
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.1.284'; PDFJS.version = '1.1.286';
PDFJS.build = '535b7c2'; PDFJS.build = 'dde3e4a';
(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
@ -30464,6 +30464,16 @@ var Parser = (function ParserClosure() {
this.buf2 = this.lexer.getObj(); this.buf2 = this.lexer.getObj();
} }
}, },
tryShift: function Parser_tryShift() {
try {
this.shift();
return true;
} catch (e) {
// Upon failure, the caller should reset this.lexer.pos to a known good
// state and call this.shift() twice to reset the buffers.
return false;
}
},
getObj: function Parser_getObj(cipherTransform) { getObj: function Parser_getObj(cipherTransform) {
var buf1 = this.buf1; var buf1 = this.buf1;
this.shift(); this.shift();
@ -30837,9 +30847,10 @@ var Parser = (function ParserClosure() {
stream.pos = pos + length; stream.pos = pos + length;
lexer.nextChar(); lexer.nextChar();
this.shift(); // '>>' // Shift '>>' and check whether the new object marks the end of the stream
this.shift(); // 'stream' if (this.tryShift() && isCmd(this.buf2, 'endstream')) {
if (!isCmd(this.buf1, 'endstream')) { this.shift(); // 'stream'
} else {
// bad stream length, scanning for endstream // bad stream length, scanning for endstream
stream.pos = pos; stream.pos = pos;
var SCAN_BLOCK_SIZE = 2048; var SCAN_BLOCK_SIZE = 2048;

2
package.json

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