Browse Source

PDF.js version 1.9.577 - See mozilla/pdf.js@fbd6e47aaf042213fc1fa568f6f2fc4069820e0e

master v1.9.577
pdfjsbot 8 years ago
parent
commit
2548707b8e
  1. 2
      bower.json
  2. 20
      build/pdf.combined.js
  3. 2
      build/pdf.combined.js.map
  4. 12
      build/pdf.js
  5. 2
      build/pdf.js.map
  6. 2
      build/pdf.min.js
  7. 12
      build/pdf.worker.js
  8. 2
      build/pdf.worker.js.map
  9. 2
      build/pdf.worker.min.js
  10. 8
      lib/core/stream.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.575", "version": "1.9.577",
"main": [ "main": [
"build/pdf.js", "build/pdf.js",
"build/pdf.worker.js" "build/pdf.worker.js"

20
build/pdf.combined.js

@ -2820,6 +2820,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
this.inputBits = 0; this.inputBits = 0;
this.inputBuf = 0; this.inputBuf = 0;
this.outputBits = 0; this.outputBits = 0;
this.rowsDone = false;
var code1; var code1;
while ((code1 = this.lookBits(12)) === 0) { while ((code1 = this.lookBits(12)) === 0) {
this.eatBits(1); this.eatBits(1);
@ -2889,6 +2890,9 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
var columns = this.columns; var columns = this.columns;
var refPos, blackPixels, bits, i; var refPos, blackPixels, bits, i;
if (this.outputBits === 0) { if (this.outputBits === 0) {
if (this.rowsDone) {
this.eof = true;
}
if (this.eof) { if (this.eof) {
return null; return null;
} }
@ -3054,7 +3058,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
this.inputBits &= ~7; this.inputBits &= ~7;
} }
if (!this.eoblock && this.row === this.rows - 1) { if (!this.eoblock && this.row === this.rows - 1) {
this.eof = true; this.rowsDone = true;
} else { } else {
code1 = this.lookBits(12); code1 = this.lookBits(12);
if (this.eoline) { if (this.eoline) {
@ -3075,7 +3079,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
this.eof = true; this.eof = true;
} }
} }
if (!this.eof && this.encoding > 0) { if (!this.eof && this.encoding > 0 && !this.rowsDone) {
this.nextLine2D = !this.lookBits(1); this.nextLine2D = !this.lookBits(1);
this.eatBits(1); this.eatBits(1);
} }
@ -13500,8 +13504,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.9.575'; exports.version = version = '1.9.577';
exports.build = build = '9c2e9dae'; exports.build = build = 'fbd6e47a';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort; exports.LoopbackPort = LoopbackPort;
@ -29364,8 +29368,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict"; "use strict";
var pdfjsVersion = '1.9.575'; var pdfjsVersion = '1.9.577';
var pdfjsBuild = '9c2e9dae'; var pdfjsBuild = 'fbd6e47a';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(98); var pdfjsDisplayGlobal = __w_pdfjs_require__(98);
var pdfjsDisplayAPI = __w_pdfjs_require__(55); var pdfjsDisplayAPI = __w_pdfjs_require__(55);
@ -35227,8 +35231,8 @@ if (!_global_scope2.default.PDFJS) {
} }
var PDFJS = _global_scope2.default.PDFJS; var PDFJS = _global_scope2.default.PDFJS;
{ {
PDFJS.version = '1.9.575'; PDFJS.version = '1.9.577';
PDFJS.build = '9c2e9dae'; PDFJS.build = 'fbd6e47a';
} }
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

12
build/pdf.js

@ -4204,8 +4204,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.9.575'; exports.version = version = '1.9.577';
exports.build = build = '9c2e9dae'; exports.build = build = 'fbd6e47a';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort; exports.LoopbackPort = LoopbackPort;
@ -7182,8 +7182,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict"; "use strict";
var pdfjsVersion = '1.9.575'; var pdfjsVersion = '1.9.577';
var pdfjsBuild = '9c2e9dae'; var pdfjsBuild = 'fbd6e47a';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(82); var pdfjsDisplayGlobal = __w_pdfjs_require__(82);
var pdfjsDisplayAPI = __w_pdfjs_require__(48); var pdfjsDisplayAPI = __w_pdfjs_require__(48);
@ -13045,8 +13045,8 @@ if (!_global_scope2.default.PDFJS) {
} }
var PDFJS = _global_scope2.default.PDFJS; var PDFJS = _global_scope2.default.PDFJS;
{ {
PDFJS.version = '1.9.575'; PDFJS.version = '1.9.577';
PDFJS.build = '9c2e9dae'; PDFJS.build = 'fbd6e47a';
} }
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {

2
build/pdf.js.map

File diff suppressed because one or more lines are too long

2
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

12
build/pdf.worker.js vendored

@ -2820,6 +2820,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
this.inputBits = 0; this.inputBits = 0;
this.inputBuf = 0; this.inputBuf = 0;
this.outputBits = 0; this.outputBits = 0;
this.rowsDone = false;
var code1; var code1;
while ((code1 = this.lookBits(12)) === 0) { while ((code1 = this.lookBits(12)) === 0) {
this.eatBits(1); this.eatBits(1);
@ -2889,6 +2890,9 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
var columns = this.columns; var columns = this.columns;
var refPos, blackPixels, bits, i; var refPos, blackPixels, bits, i;
if (this.outputBits === 0) { if (this.outputBits === 0) {
if (this.rowsDone) {
this.eof = true;
}
if (this.eof) { if (this.eof) {
return null; return null;
} }
@ -3054,7 +3058,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
this.inputBits &= ~7; this.inputBits &= ~7;
} }
if (!this.eoblock && this.row === this.rows - 1) { if (!this.eoblock && this.row === this.rows - 1) {
this.eof = true; this.rowsDone = true;
} else { } else {
code1 = this.lookBits(12); code1 = this.lookBits(12);
if (this.eoline) { if (this.eoline) {
@ -3075,7 +3079,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
this.eof = true; this.eof = true;
} }
} }
if (!this.eof && this.encoding > 0) { if (!this.eof && this.encoding > 0 && !this.rowsDone) {
this.nextLine2D = !this.lookBits(1); this.nextLine2D = !this.lookBits(1);
this.eatBits(1); this.eatBits(1);
} }
@ -24539,8 +24543,8 @@ exports.getUnicodeForGlyph = getUnicodeForGlyph;
"use strict"; "use strict";
var pdfjsVersion = '1.9.575'; var pdfjsVersion = '1.9.577';
var pdfjsBuild = '9c2e9dae'; var pdfjsBuild = 'fbd6e47a';
var pdfjsCoreWorker = __w_pdfjs_require__(62); var pdfjsCoreWorker = __w_pdfjs_require__(62);
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

2
build/pdf.worker.min.js vendored

File diff suppressed because one or more lines are too long

8
lib/core/stream.js

@ -1096,6 +1096,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
this.inputBits = 0; this.inputBits = 0;
this.inputBuf = 0; this.inputBuf = 0;
this.outputBits = 0; this.outputBits = 0;
this.rowsDone = false;
var code1; var code1;
while ((code1 = this.lookBits(12)) === 0) { while ((code1 = this.lookBits(12)) === 0) {
this.eatBits(1); this.eatBits(1);
@ -1165,6 +1166,9 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
var columns = this.columns; var columns = this.columns;
var refPos, blackPixels, bits, i; var refPos, blackPixels, bits, i;
if (this.outputBits === 0) { if (this.outputBits === 0) {
if (this.rowsDone) {
this.eof = true;
}
if (this.eof) { if (this.eof) {
return null; return null;
} }
@ -1330,7 +1334,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
this.inputBits &= ~7; this.inputBits &= ~7;
} }
if (!this.eoblock && this.row === this.rows - 1) { if (!this.eoblock && this.row === this.rows - 1) {
this.eof = true; this.rowsDone = true;
} else { } else {
code1 = this.lookBits(12); code1 = this.lookBits(12);
if (this.eoline) { if (this.eoline) {
@ -1351,7 +1355,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
this.eof = true; this.eof = true;
} }
} }
if (!this.eof && this.encoding > 0) { if (!this.eof && this.encoding > 0 && !this.rowsDone) {
this.nextLine2D = !this.lookBits(1); this.nextLine2D = !this.lookBits(1);
this.eatBits(1); this.eatBits(1);
} }

4
lib/display/api.js

@ -1582,8 +1582,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.9.575'; exports.version = version = '1.9.577';
exports.build = build = '9c2e9dae'; exports.build = build = 'fbd6e47a';
} }
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.575'; PDFJS.version = '1.9.577';
PDFJS.build = '9c2e9dae'; PDFJS.build = 'fbd6e47a';
} }
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.575'; var pdfjsVersion = '1.9.577';
var pdfjsBuild = '9c2e9dae'; var pdfjsBuild = 'fbd6e47a';
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.575'; var pdfjsVersion = '1.9.577';
var pdfjsBuild = '9c2e9dae'; var pdfjsBuild = 'fbd6e47a';
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.575", "version": "1.9.577",
"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