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 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "1.8.282",
"version": "1.8.284",
"main": [
"build/pdf.js",
"build/pdf.worker.js"

31
build/pdf.combined.js

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

12
build/pdf.js

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

5
lib/core/document.js

@ -429,11 +429,12 @@ var PDFDocument = function PDFDocumentClosure() { @@ -429,11 +429,12 @@ var PDFDocument = function PDFDocumentClosure() {
this.xref.setStartXRef(startXRef);
},
setup: function PDFDocument_setup(recoveryMode) {
var _this = this;
this.xref.parse(recoveryMode);
var self = this;
var pageFactory = {
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);

12
lib/core/evaluator.js

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

4
lib/display/api.js

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

4
lib/display/global.js

@ -39,8 +39,8 @@ if (!_util.globalScope.PDFJS) { @@ -39,8 +39,8 @@ if (!_util.globalScope.PDFJS) {
}
var PDFJS = _util.globalScope.PDFJS;
{
PDFJS.version = '1.8.282';
PDFJS.build = '5fb779d2';
PDFJS.version = '1.8.284';
PDFJS.build = '06c93d8f';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {

4
lib/pdf.js

@ -14,8 +14,8 @@ @@ -14,8 +14,8 @@
*/
'use strict';
var pdfjsVersion = '1.8.282';
var pdfjsBuild = '5fb779d2';
var pdfjsVersion = '1.8.284';
var pdfjsBuild = '06c93d8f';
var pdfjsSharedUtil = require('./shared/util.js');
var pdfjsDisplayGlobal = require('./display/global.js');
var pdfjsDisplayAPI = require('./display/api.js');

4
lib/pdf.worker.js vendored

@ -14,8 +14,8 @@ @@ -14,8 +14,8 @@
*/
'use strict';
var pdfjsVersion = '1.8.282';
var pdfjsBuild = '5fb779d2';
var pdfjsVersion = '1.8.284';
var pdfjsBuild = '06c93d8f';
var pdfjsCoreWorker = require('./core/worker.js');
{
require('./core/network.js');

2
package.json

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

Loading…
Cancel
Save