Browse Source

PDF.js version 1.8.284 - See mozilla/pdf.js@06c93d8fbd597d6bf61859498899c8a51f20b674

master v1.8.284
pdfjsbot 8 years ago
parent
commit
b635b01e43
  1. 2
      bower.json
  2. 31
      build/pdf.combined.js
  3. 12
      build/pdf.js
  4. 4
      build/pdf.min.js
  5. 23
      build/pdf.worker.js
  6. 24
      build/pdf.worker.min.js
  7. 2
      lib/core/cmap.js
  8. 5
      lib/core/document.js
  9. 12
      lib/core/evaluator.js
  10. 4
      lib/display/api.js
  11. 4
      lib/display/global.js
  12. 4
      lib/pdf.js
  13. 4
      lib/pdf.worker.js
  14. 2
      package.json

2
bower.json

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

31
build/pdf.combined.js

@ -12726,8 +12726,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.8.282'; exports.version = version = '1.8.284';
exports.build = build = '5fb779d2'; exports.build = build = '06c93d8f';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.PDFDataRangeTransport = PDFDataRangeTransport; exports.PDFDataRangeTransport = PDFDataRangeTransport;
@ -18149,6 +18149,8 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
return (cs.numComps === 1 || cs.numComps === 3) && cs.isDefaultDecode(dict.getArray('Decode', 'D')); return (cs.numComps === 1 || cs.numComps === 3) && cs.isDefaultDecode(dict.getArray('Decode', 'D'));
}; };
function PartialEvaluator(pdfManager, xref, handler, pageIndex, idFactory, fontCache, builtInCMapCache, options) { function PartialEvaluator(pdfManager, xref, handler, pageIndex, idFactory, fontCache, builtInCMapCache, options) {
var _this = this;
this.pdfManager = pdfManager; this.pdfManager = pdfManager;
this.xref = xref; this.xref = xref;
this.handler = handler; this.handler = handler;
@ -18158,13 +18160,13 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
this.builtInCMapCache = builtInCMapCache; this.builtInCMapCache = builtInCMapCache;
this.options = options || DefaultPartialEvaluatorOptions; this.options = options || DefaultPartialEvaluatorOptions;
this.fetchBuiltInCMap = function (name) { this.fetchBuiltInCMap = function (name) {
var cachedCMap = builtInCMapCache[name]; var cachedCMap = _this.builtInCMapCache[name];
if (cachedCMap) { if (cachedCMap) {
return Promise.resolve(cachedCMap); return Promise.resolve(cachedCMap);
} }
return handler.sendWithPromise('FetchBuiltInCMap', { name: name }).then(function (data) { return handler.sendWithPromise('FetchBuiltInCMap', { name: name }).then(function (data) {
if (data.compressionType !== CMapCompressionType.NONE) { if (data.compressionType !== CMapCompressionType.NONE) {
builtInCMapCache[name] = data; _this.builtInCMapCache[name] = data;
} }
return data; return data;
}); });
@ -18234,12 +18236,14 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
var TILING_PATTERN = 1, var TILING_PATTERN = 1,
SHADING_PATTERN = 2; SHADING_PATTERN = 2;
PartialEvaluator.prototype = { PartialEvaluator.prototype = {
clone: function clone(newOptions) { clone: function clone() {
newOptions = newOptions || DefaultPartialEvaluatorOptions; var newOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DefaultPartialEvaluatorOptions;
var newEvaluator = Object.create(this); var newEvaluator = Object.create(this);
newEvaluator.options = newOptions; newEvaluator.options = newOptions;
return newEvaluator; return newEvaluator;
}, },
hasBlendModes: function PartialEvaluator_hasBlendModes(resources) { hasBlendModes: function PartialEvaluator_hasBlendModes(resources) {
if (!isDict(resources)) { if (!isDict(resources)) {
return false; return false;
@ -28020,8 +28024,8 @@ if (!_util.globalScope.PDFJS) {
} }
var PDFJS = _util.globalScope.PDFJS; var PDFJS = _util.globalScope.PDFJS;
{ {
PDFJS.version = '1.8.282'; PDFJS.version = '1.8.284';
PDFJS.build = '5fb779d2'; PDFJS.build = '06c93d8f';
} }
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
@ -29144,6 +29148,7 @@ var CMap = function CMapClosure() {
out.charcode = 0; out.charcode = 0;
out.length = 1; out.length = 1;
}, },
get length() { get length() {
return this._map.length; return this._map.length;
}, },
@ -29206,6 +29211,7 @@ var IdentityCMap = function IdentityCMapClosure() {
} }
return map; return map;
}, },
readCharCode: CMap.prototype.readCharCode, readCharCode: CMap.prototype.readCharCode,
get length() { get length() {
return 0x10000; return 0x10000;
@ -30160,11 +30166,12 @@ var PDFDocument = function PDFDocumentClosure() {
this.xref.setStartXRef(startXRef); this.xref.setStartXRef(startXRef);
}, },
setup: function PDFDocument_setup(recoveryMode) { setup: function PDFDocument_setup(recoveryMode) {
var _this = this;
this.xref.parse(recoveryMode); this.xref.parse(recoveryMode);
var self = this;
var pageFactory = { var pageFactory = {
createPage: function createPage(pageIndex, dict, ref, fontCache, builtInCMapCache) { createPage: function createPage(pageIndex, dict, ref, fontCache, builtInCMapCache) {
return new Page(self.pdfManager, self.xref, pageIndex, dict, ref, fontCache, builtInCMapCache); return new Page(_this.pdfManager, _this.xref, pageIndex, dict, ref, fontCache, builtInCMapCache);
} }
}; };
this.catalog = new Catalog(this.pdfManager, this.xref, pageFactory); this.catalog = new Catalog(this.pdfManager, this.xref, pageFactory);
@ -43543,8 +43550,8 @@ exports.TilingPattern = TilingPattern;
"use strict"; "use strict";
var pdfjsVersion = '1.8.282'; var pdfjsVersion = '1.8.284';
var pdfjsBuild = '5fb779d2'; var pdfjsBuild = '06c93d8f';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(26); var pdfjsDisplayGlobal = __w_pdfjs_require__(26);
var pdfjsDisplayAPI = __w_pdfjs_require__(10); var pdfjsDisplayAPI = __w_pdfjs_require__(10);

12
build/pdf.js

@ -3435,8 +3435,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.8.282'; exports.version = version = '1.8.284';
exports.build = build = '5fb779d2'; exports.build = build = '06c93d8f';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.PDFDataRangeTransport = PDFDataRangeTransport; exports.PDFDataRangeTransport = PDFDataRangeTransport;
@ -5403,8 +5403,8 @@ if (!_util.globalScope.PDFJS) {
} }
var PDFJS = _util.globalScope.PDFJS; var PDFJS = _util.globalScope.PDFJS;
{ {
PDFJS.version = '1.8.282'; PDFJS.version = '1.8.284';
PDFJS.build = '5fb779d2'; PDFJS.build = '06c93d8f';
} }
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
@ -7898,8 +7898,8 @@ exports.TilingPattern = TilingPattern;
"use strict"; "use strict";
var pdfjsVersion = '1.8.282'; var pdfjsVersion = '1.8.284';
var pdfjsBuild = '5fb779d2'; var pdfjsBuild = '06c93d8f';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(9); var pdfjsDisplayGlobal = __w_pdfjs_require__(9);
var pdfjsDisplayAPI = __w_pdfjs_require__(3); var pdfjsDisplayAPI = __w_pdfjs_require__(3);

4
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

23
build/pdf.worker.js vendored

@ -15212,6 +15212,8 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
return (cs.numComps === 1 || cs.numComps === 3) && cs.isDefaultDecode(dict.getArray('Decode', 'D')); return (cs.numComps === 1 || cs.numComps === 3) && cs.isDefaultDecode(dict.getArray('Decode', 'D'));
}; };
function PartialEvaluator(pdfManager, xref, handler, pageIndex, idFactory, fontCache, builtInCMapCache, options) { function PartialEvaluator(pdfManager, xref, handler, pageIndex, idFactory, fontCache, builtInCMapCache, options) {
var _this = this;
this.pdfManager = pdfManager; this.pdfManager = pdfManager;
this.xref = xref; this.xref = xref;
this.handler = handler; this.handler = handler;
@ -15221,13 +15223,13 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
this.builtInCMapCache = builtInCMapCache; this.builtInCMapCache = builtInCMapCache;
this.options = options || DefaultPartialEvaluatorOptions; this.options = options || DefaultPartialEvaluatorOptions;
this.fetchBuiltInCMap = function (name) { this.fetchBuiltInCMap = function (name) {
var cachedCMap = builtInCMapCache[name]; var cachedCMap = _this.builtInCMapCache[name];
if (cachedCMap) { if (cachedCMap) {
return Promise.resolve(cachedCMap); return Promise.resolve(cachedCMap);
} }
return handler.sendWithPromise('FetchBuiltInCMap', { name: name }).then(function (data) { return handler.sendWithPromise('FetchBuiltInCMap', { name: name }).then(function (data) {
if (data.compressionType !== CMapCompressionType.NONE) { if (data.compressionType !== CMapCompressionType.NONE) {
builtInCMapCache[name] = data; _this.builtInCMapCache[name] = data;
} }
return data; return data;
}); });
@ -15297,12 +15299,14 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
var TILING_PATTERN = 1, var TILING_PATTERN = 1,
SHADING_PATTERN = 2; SHADING_PATTERN = 2;
PartialEvaluator.prototype = { PartialEvaluator.prototype = {
clone: function clone(newOptions) { clone: function clone() {
newOptions = newOptions || DefaultPartialEvaluatorOptions; var newOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DefaultPartialEvaluatorOptions;
var newEvaluator = Object.create(this); var newEvaluator = Object.create(this);
newEvaluator.options = newOptions; newEvaluator.options = newOptions;
return newEvaluator; return newEvaluator;
}, },
hasBlendModes: function PartialEvaluator_hasBlendModes(resources) { hasBlendModes: function PartialEvaluator_hasBlendModes(resources) {
if (!isDict(resources)) { if (!isDict(resources)) {
return false; return false;
@ -25433,6 +25437,7 @@ var CMap = function CMapClosure() {
out.charcode = 0; out.charcode = 0;
out.length = 1; out.length = 1;
}, },
get length() { get length() {
return this._map.length; return this._map.length;
}, },
@ -25495,6 +25500,7 @@ var IdentityCMap = function IdentityCMapClosure() {
} }
return map; return map;
}, },
readCharCode: CMap.prototype.readCharCode, readCharCode: CMap.prototype.readCharCode,
get length() { get length() {
return 0x10000; return 0x10000;
@ -26449,11 +26455,12 @@ var PDFDocument = function PDFDocumentClosure() {
this.xref.setStartXRef(startXRef); this.xref.setStartXRef(startXRef);
}, },
setup: function PDFDocument_setup(recoveryMode) { setup: function PDFDocument_setup(recoveryMode) {
var _this = this;
this.xref.parse(recoveryMode); this.xref.parse(recoveryMode);
var self = this;
var pageFactory = { var pageFactory = {
createPage: function createPage(pageIndex, dict, ref, fontCache, builtInCMapCache) { createPage: function createPage(pageIndex, dict, ref, fontCache, builtInCMapCache) {
return new Page(self.pdfManager, self.xref, pageIndex, dict, ref, fontCache, builtInCMapCache); return new Page(_this.pdfManager, _this.xref, pageIndex, dict, ref, fontCache, builtInCMapCache);
} }
}; };
this.catalog = new Catalog(this.pdfManager, this.xref, pageFactory); this.catalog = new Catalog(this.pdfManager, this.xref, pageFactory);
@ -36956,8 +36963,8 @@ exports.Type1Parser = Type1Parser;
"use strict"; "use strict";
var pdfjsVersion = '1.8.282'; var pdfjsVersion = '1.8.284';
var pdfjsBuild = '5fb779d2'; var pdfjsBuild = '06c93d8f';
var pdfjsCoreWorker = __w_pdfjs_require__(8); var pdfjsCoreWorker = __w_pdfjs_require__(8);
{ {
__w_pdfjs_require__(19); __w_pdfjs_require__(19);

24
build/pdf.worker.min.js vendored

File diff suppressed because one or more lines are too long

2
lib/core/cmap.js

@ -119,6 +119,7 @@ var CMap = function CMapClosure() {
out.charcode = 0; out.charcode = 0;
out.length = 1; out.length = 1;
}, },
get length() { get length() {
return this._map.length; return this._map.length;
}, },
@ -181,6 +182,7 @@ var IdentityCMap = function IdentityCMapClosure() {
} }
return map; return map;
}, },
readCharCode: CMap.prototype.readCharCode, readCharCode: CMap.prototype.readCharCode,
get length() { get length() {
return 0x10000; return 0x10000;

5
lib/core/document.js

@ -429,11 +429,12 @@ var PDFDocument = function PDFDocumentClosure() {
this.xref.setStartXRef(startXRef); this.xref.setStartXRef(startXRef);
}, },
setup: function PDFDocument_setup(recoveryMode) { setup: function PDFDocument_setup(recoveryMode) {
var _this = this;
this.xref.parse(recoveryMode); this.xref.parse(recoveryMode);
var self = this;
var pageFactory = { var pageFactory = {
createPage: function createPage(pageIndex, dict, ref, fontCache, builtInCMapCache) { createPage: function createPage(pageIndex, dict, ref, fontCache, builtInCMapCache) {
return new Page(self.pdfManager, self.xref, pageIndex, dict, ref, fontCache, builtInCMapCache); return new Page(_this.pdfManager, _this.xref, pageIndex, dict, ref, fontCache, builtInCMapCache);
} }
}; };
this.catalog = new Catalog(this.pdfManager, this.xref, pageFactory); this.catalog = new Catalog(this.pdfManager, this.xref, pageFactory);

12
lib/core/evaluator.js

@ -138,6 +138,8 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
return (cs.numComps === 1 || cs.numComps === 3) && cs.isDefaultDecode(dict.getArray('Decode', 'D')); return (cs.numComps === 1 || cs.numComps === 3) && cs.isDefaultDecode(dict.getArray('Decode', 'D'));
}; };
function PartialEvaluator(pdfManager, xref, handler, pageIndex, idFactory, fontCache, builtInCMapCache, options) { function PartialEvaluator(pdfManager, xref, handler, pageIndex, idFactory, fontCache, builtInCMapCache, options) {
var _this = this;
this.pdfManager = pdfManager; this.pdfManager = pdfManager;
this.xref = xref; this.xref = xref;
this.handler = handler; this.handler = handler;
@ -147,13 +149,13 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
this.builtInCMapCache = builtInCMapCache; this.builtInCMapCache = builtInCMapCache;
this.options = options || DefaultPartialEvaluatorOptions; this.options = options || DefaultPartialEvaluatorOptions;
this.fetchBuiltInCMap = function (name) { this.fetchBuiltInCMap = function (name) {
var cachedCMap = builtInCMapCache[name]; var cachedCMap = _this.builtInCMapCache[name];
if (cachedCMap) { if (cachedCMap) {
return Promise.resolve(cachedCMap); return Promise.resolve(cachedCMap);
} }
return handler.sendWithPromise('FetchBuiltInCMap', { name: name }).then(function (data) { return handler.sendWithPromise('FetchBuiltInCMap', { name: name }).then(function (data) {
if (data.compressionType !== CMapCompressionType.NONE) { if (data.compressionType !== CMapCompressionType.NONE) {
builtInCMapCache[name] = data; _this.builtInCMapCache[name] = data;
} }
return data; return data;
}); });
@ -223,12 +225,14 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
var TILING_PATTERN = 1, var TILING_PATTERN = 1,
SHADING_PATTERN = 2; SHADING_PATTERN = 2;
PartialEvaluator.prototype = { PartialEvaluator.prototype = {
clone: function clone(newOptions) { clone: function clone() {
newOptions = newOptions || DefaultPartialEvaluatorOptions; var newOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DefaultPartialEvaluatorOptions;
var newEvaluator = Object.create(this); var newEvaluator = Object.create(this);
newEvaluator.options = newOptions; newEvaluator.options = newOptions;
return newEvaluator; return newEvaluator;
}, },
hasBlendModes: function PartialEvaluator_hasBlendModes(resources) { hasBlendModes: function PartialEvaluator_hasBlendModes(resources) {
if (!isDict(resources)) { if (!isDict(resources)) {
return false; return false;

4
lib/display/api.js

@ -1366,8 +1366,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.8.282'; exports.version = version = '1.8.284';
exports.build = build = '5fb779d2'; exports.build = build = '06c93d8f';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.PDFDataRangeTransport = PDFDataRangeTransport; exports.PDFDataRangeTransport = PDFDataRangeTransport;

4
lib/display/global.js

@ -39,8 +39,8 @@ if (!_util.globalScope.PDFJS) {
} }
var PDFJS = _util.globalScope.PDFJS; var PDFJS = _util.globalScope.PDFJS;
{ {
PDFJS.version = '1.8.282'; PDFJS.version = '1.8.284';
PDFJS.build = '5fb779d2'; PDFJS.build = '06c93d8f';
} }
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.8.282'; var pdfjsVersion = '1.8.284';
var pdfjsBuild = '5fb779d2'; var pdfjsBuild = '06c93d8f';
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,8 +14,8 @@
*/ */
'use strict'; 'use strict';
var pdfjsVersion = '1.8.282'; var pdfjsVersion = '1.8.284';
var pdfjsBuild = '5fb779d2'; var pdfjsBuild = '06c93d8f';
var pdfjsCoreWorker = require('./core/worker.js'); var pdfjsCoreWorker = require('./core/worker.js');
{ {
require('./core/network.js'); require('./core/network.js');

2
package.json

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