Browse Source

PDF.js version 1.9.462 - See mozilla/pdf.js@e9ba54940d6fc3bd81b11ffafdb9137114798292

master v1.9.462
pdfjsbot 8 years ago
parent
commit
41cc3577dd
  1. 2
      bower.json
  2. 37
      build/pdf.combined.js
  3. 2
      build/pdf.combined.js.map
  4. 12
      build/pdf.js
  5. 2
      build/pdf.js.map
  6. 4
      build/pdf.min.js
  7. 29
      build/pdf.worker.js
  8. 2
      build/pdf.worker.js.map
  9. 26
      build/pdf.worker.min.js
  10. 25
      lib/core/parser.js
  11. 4
      lib/display/api.js
  12. 4
      lib/display/global.js
  13. 4
      lib/pdf.js
  14. 4
      lib/pdf.worker.js
  15. 2
      package.json

2
bower.json

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

37
build/pdf.combined.js

@ -5062,18 +5062,17 @@ var Parser = function ParserClosure() {
} }
return buf1; return buf1;
}, },
findDefaultInlineStreamEnd: function Parser_findDefaultInlineStreamEnd(stream) { findDefaultInlineStreamEnd: function findDefaultInlineStreamEnd(stream) {
var E = 0x45, var E = 0x45,
I = 0x49, I = 0x49,
SPACE = 0x20, SPACE = 0x20,
LF = 0xA, LF = 0xA,
CR = 0xD; CR = 0xD,
n = 5;
var startPos = stream.pos, var startPos = stream.pos,
state = 0, state = 0,
ch, ch = void 0,
i, maybeEIPos = void 0;
n,
followingBytes;
while ((ch = stream.getByte()) !== -1) { while ((ch = stream.getByte()) !== -1) {
if (state === 0) { if (state === 0) {
state = ch === E ? 1 : 0; state = ch === E ? 1 : 0;
@ -5082,9 +5081,9 @@ var Parser = function ParserClosure() {
} else { } else {
(0, _util.assert)(state === 2); (0, _util.assert)(state === 2);
if (ch === SPACE || ch === LF || ch === CR) { if (ch === SPACE || ch === LF || ch === CR) {
n = 5; maybeEIPos = stream.pos;
followingBytes = stream.peekBytes(n); var followingBytes = stream.peekBytes(n);
for (i = 0; i < n; i++) { for (var i = 0; i < n; i++) {
ch = followingBytes[i]; ch = followingBytes[i];
if (ch !== LF && ch !== CR && (ch < SPACE || ch > 0x7F)) { if (ch !== LF && ch !== CR && (ch < SPACE || ch > 0x7F)) {
state = 0; state = 0;
@ -5099,8 +5098,16 @@ var Parser = function ParserClosure() {
} }
} }
} }
if (ch === -1) {
(0, _util.warn)('findDefaultInlineStreamEnd: ' + 'Reached the end of the stream without finding a valid EI marker');
if (maybeEIPos) {
(0, _util.warn)('... trying to recover by using the last "EI" occurrence.');
stream.skip(-(stream.pos - maybeEIPos));
}
}
return stream.pos - 4 - startPos; return stream.pos - 4 - startPos;
}, },
findDCTDecodeInlineStreamEnd: function Parser_findDCTDecodeInlineStreamEnd(stream) { findDCTDecodeInlineStreamEnd: function Parser_findDCTDecodeInlineStreamEnd(stream) {
var startPos = stream.pos, var startPos = stream.pos,
foundEOI = false, foundEOI = false,
@ -7358,8 +7365,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.9.460'; exports.version = version = '1.9.462';
exports.build = build = '23a41741'; exports.build = build = 'e9ba5494';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort; exports.LoopbackPort = LoopbackPort;
@ -28968,8 +28975,8 @@ if (!_global_scope2.default.PDFJS) {
} }
var PDFJS = _global_scope2.default.PDFJS; var PDFJS = _global_scope2.default.PDFJS;
{ {
PDFJS.version = '1.9.460'; PDFJS.version = '1.9.462';
PDFJS.build = '23a41741'; PDFJS.build = 'e9ba5494';
} }
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
@ -49864,8 +49871,8 @@ exports.PDFDataTransportStream = PDFDataTransportStream;
"use strict"; "use strict";
var pdfjsVersion = '1.9.460'; var pdfjsVersion = '1.9.462';
var pdfjsBuild = '23a41741'; var pdfjsBuild = 'e9ba5494';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(69); var pdfjsDisplayGlobal = __w_pdfjs_require__(69);
var pdfjsDisplayAPI = __w_pdfjs_require__(26); var pdfjsDisplayAPI = __w_pdfjs_require__(26);

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

12
build/pdf.js

@ -3608,8 +3608,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.9.460'; exports.version = version = '1.9.462';
exports.build = build = '23a41741'; exports.build = build = 'e9ba5494';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort; exports.LoopbackPort = LoopbackPort;
@ -6842,8 +6842,8 @@ if (!_global_scope2.default.PDFJS) {
} }
var PDFJS = _global_scope2.default.PDFJS; var PDFJS = _global_scope2.default.PDFJS;
{ {
PDFJS.version = '1.9.460'; PDFJS.version = '1.9.462';
PDFJS.build = '23a41741'; PDFJS.build = 'e9ba5494';
} }
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
@ -14334,8 +14334,8 @@ exports.PDFDataTransportStream = PDFDataTransportStream;
"use strict"; "use strict";
var pdfjsVersion = '1.9.460'; var pdfjsVersion = '1.9.462';
var pdfjsBuild = '23a41741'; var pdfjsBuild = 'e9ba5494';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(53); var pdfjsDisplayGlobal = __w_pdfjs_require__(53);
var pdfjsDisplayAPI = __w_pdfjs_require__(21); var pdfjsDisplayAPI = __w_pdfjs_require__(21);

2
build/pdf.js.map

File diff suppressed because one or more lines are too long

4
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

29
build/pdf.worker.js vendored

@ -4759,18 +4759,17 @@ var Parser = function ParserClosure() {
} }
return buf1; return buf1;
}, },
findDefaultInlineStreamEnd: function Parser_findDefaultInlineStreamEnd(stream) { findDefaultInlineStreamEnd: function findDefaultInlineStreamEnd(stream) {
var E = 0x45, var E = 0x45,
I = 0x49, I = 0x49,
SPACE = 0x20, SPACE = 0x20,
LF = 0xA, LF = 0xA,
CR = 0xD; CR = 0xD,
n = 5;
var startPos = stream.pos, var startPos = stream.pos,
state = 0, state = 0,
ch, ch = void 0,
i, maybeEIPos = void 0;
n,
followingBytes;
while ((ch = stream.getByte()) !== -1) { while ((ch = stream.getByte()) !== -1) {
if (state === 0) { if (state === 0) {
state = ch === E ? 1 : 0; state = ch === E ? 1 : 0;
@ -4779,9 +4778,9 @@ var Parser = function ParserClosure() {
} else { } else {
(0, _util.assert)(state === 2); (0, _util.assert)(state === 2);
if (ch === SPACE || ch === LF || ch === CR) { if (ch === SPACE || ch === LF || ch === CR) {
n = 5; maybeEIPos = stream.pos;
followingBytes = stream.peekBytes(n); var followingBytes = stream.peekBytes(n);
for (i = 0; i < n; i++) { for (var i = 0; i < n; i++) {
ch = followingBytes[i]; ch = followingBytes[i];
if (ch !== LF && ch !== CR && (ch < SPACE || ch > 0x7F)) { if (ch !== LF && ch !== CR && (ch < SPACE || ch > 0x7F)) {
state = 0; state = 0;
@ -4796,8 +4795,16 @@ var Parser = function ParserClosure() {
} }
} }
} }
if (ch === -1) {
(0, _util.warn)('findDefaultInlineStreamEnd: ' + 'Reached the end of the stream without finding a valid EI marker');
if (maybeEIPos) {
(0, _util.warn)('... trying to recover by using the last "EI" occurrence.');
stream.skip(-(stream.pos - maybeEIPos));
}
}
return stream.pos - 4 - startPos; return stream.pos - 4 - startPos;
}, },
findDCTDecodeInlineStreamEnd: function Parser_findDCTDecodeInlineStreamEnd(stream) { findDCTDecodeInlineStreamEnd: function Parser_findDCTDecodeInlineStreamEnd(stream) {
var startPos = stream.pos, var startPos = stream.pos,
foundEOI = false, foundEOI = false,
@ -42122,8 +42129,8 @@ exports.Type1Parser = Type1Parser;
"use strict"; "use strict";
var pdfjsVersion = '1.9.460'; var pdfjsVersion = '1.9.462';
var pdfjsBuild = '23a41741'; var pdfjsBuild = 'e9ba5494';
var pdfjsCoreWorker = __w_pdfjs_require__(61); var pdfjsCoreWorker = __w_pdfjs_require__(61);
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler; exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

2
build/pdf.worker.js.map vendored

File diff suppressed because one or more lines are too long

26
build/pdf.worker.min.js vendored

File diff suppressed because one or more lines are too long

25
lib/core/parser.js

@ -129,18 +129,17 @@ var Parser = function ParserClosure() {
} }
return buf1; return buf1;
}, },
findDefaultInlineStreamEnd: function Parser_findDefaultInlineStreamEnd(stream) { findDefaultInlineStreamEnd: function findDefaultInlineStreamEnd(stream) {
var E = 0x45, var E = 0x45,
I = 0x49, I = 0x49,
SPACE = 0x20, SPACE = 0x20,
LF = 0xA, LF = 0xA,
CR = 0xD; CR = 0xD,
n = 5;
var startPos = stream.pos, var startPos = stream.pos,
state = 0, state = 0,
ch, ch = void 0,
i, maybeEIPos = void 0;
n,
followingBytes;
while ((ch = stream.getByte()) !== -1) { while ((ch = stream.getByte()) !== -1) {
if (state === 0) { if (state === 0) {
state = ch === E ? 1 : 0; state = ch === E ? 1 : 0;
@ -149,9 +148,9 @@ var Parser = function ParserClosure() {
} else { } else {
(0, _util.assert)(state === 2); (0, _util.assert)(state === 2);
if (ch === SPACE || ch === LF || ch === CR) { if (ch === SPACE || ch === LF || ch === CR) {
n = 5; maybeEIPos = stream.pos;
followingBytes = stream.peekBytes(n); var followingBytes = stream.peekBytes(n);
for (i = 0; i < n; i++) { for (var i = 0; i < n; i++) {
ch = followingBytes[i]; ch = followingBytes[i];
if (ch !== LF && ch !== CR && (ch < SPACE || ch > 0x7F)) { if (ch !== LF && ch !== CR && (ch < SPACE || ch > 0x7F)) {
state = 0; state = 0;
@ -166,8 +165,16 @@ var Parser = function ParserClosure() {
} }
} }
} }
if (ch === -1) {
(0, _util.warn)('findDefaultInlineStreamEnd: ' + 'Reached the end of the stream without finding a valid EI marker');
if (maybeEIPos) {
(0, _util.warn)('... trying to recover by using the last "EI" occurrence.');
stream.skip(-(stream.pos - maybeEIPos));
}
}
return stream.pos - 4 - startPos; return stream.pos - 4 - startPos;
}, },
findDCTDecodeInlineStreamEnd: function Parser_findDCTDecodeInlineStreamEnd(stream) { findDCTDecodeInlineStreamEnd: function Parser_findDCTDecodeInlineStreamEnd(stream) {
var startPos = stream.pos, var startPos = stream.pos,
foundEOI = false, foundEOI = false,

4
lib/display/api.js

@ -1581,8 +1581,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.9.460'; exports.version = version = '1.9.462';
exports.build = build = '23a41741'; exports.build = build = 'e9ba5494';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort; exports.LoopbackPort = LoopbackPort;

4
lib/display/global.js

@ -45,8 +45,8 @@ if (!_global_scope2.default.PDFJS) {
} }
var PDFJS = _global_scope2.default.PDFJS; var PDFJS = _global_scope2.default.PDFJS;
{ {
PDFJS.version = '1.9.460'; PDFJS.version = '1.9.462';
PDFJS.build = '23a41741'; PDFJS.build = 'e9ba5494';
} }
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {

4
lib/pdf.js

@ -14,8 +14,8 @@
*/ */
'use strict'; 'use strict';
var pdfjsVersion = '1.9.460'; var pdfjsVersion = '1.9.462';
var pdfjsBuild = '23a41741'; var pdfjsBuild = 'e9ba5494';
var pdfjsSharedUtil = require('./shared/util.js'); var pdfjsSharedUtil = require('./shared/util.js');
var pdfjsDisplayGlobal = require('./display/global.js'); var pdfjsDisplayGlobal = require('./display/global.js');
var pdfjsDisplayAPI = require('./display/api.js'); var pdfjsDisplayAPI = require('./display/api.js');

4
lib/pdf.worker.js vendored

@ -14,7 +14,7 @@
*/ */
'use strict'; 'use strict';
var pdfjsVersion = '1.9.460'; var pdfjsVersion = '1.9.462';
var pdfjsBuild = '23a41741'; var pdfjsBuild = 'e9ba5494';
var pdfjsCoreWorker = require('./core/worker.js'); var pdfjsCoreWorker = require('./core/worker.js');
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler; exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.9.460", "version": "1.9.462",
"main": "build/pdf.js", "main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [

Loading…
Cancel
Save