Browse Source

PDF.js version 1.9.604 - See mozilla/pdf.js@f206ee56bf52f860f4a341e0becdf382379a5a6a

master v1.9.604
pdfjsbot 7 years ago
parent
commit
aa4f59dc5c
  1. 2
      bower.json
  2. 19
      build/pdf.combined.js
  3. 2
      build/pdf.combined.js.map
  4. 17
      build/pdf.js
  5. 2
      build/pdf.js.map
  6. 2
      build/pdf.min.js
  7. 6
      build/pdf.worker.js
  8. 2
      build/pdf.worker.js.map
  9. 2
      build/pdf.worker.min.js
  10. 2
      lib/core/worker.js
  11. 6
      lib/display/api.js
  12. 3
      lib/display/dom_utils.js
  13. 4
      lib/display/global.js
  14. 4
      lib/pdf.js
  15. 4
      lib/pdf.worker.js
  16. 33
      lib/test/unit/cmap_spec.js
  17. 3
      lib/test/unit/test_utils.js
  18. 2
      package.json

2
bower.json

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

19
build/pdf.combined.js

@ -3575,6 +3575,9 @@ var DOMCMapReaderFactory = function () { @@ -3575,6 +3575,9 @@ var DOMCMapReaderFactory = function () {
var name = _ref2.name;
if (!this.baseUrl) {
return Promise.reject(new Error('CMap baseUrl must be specified, ' + 'see "PDFJS.cMapUrl" (and also "PDFJS.cMapPacked").'));
}
if (!name) {
return Promise.reject(new Error('CMap name must be specified.'));
}
@ -12330,7 +12333,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -12330,7 +12333,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '1.9.602';
var apiVersion = '1.9.604';
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
source.chunkedViewerLoading = !!pdfDataRangeTransport;
@ -13634,8 +13637,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -13634,8 +13637,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.9.602';
exports.build = build = '25806d17';
exports.version = version = '1.9.604';
exports.build = build = 'f206ee56';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -29593,8 +29596,8 @@ exports.SVGGraphics = SVGGraphics; @@ -29593,8 +29596,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '1.9.602';
var pdfjsBuild = '25806d17';
var pdfjsVersion = '1.9.604';
var pdfjsBuild = 'f206ee56';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(98);
var pdfjsDisplayAPI = __w_pdfjs_require__(55);
@ -35456,8 +35459,8 @@ if (!_global_scope2.default.PDFJS) { @@ -35456,8 +35459,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '1.9.602';
PDFJS.build = '25806d17';
PDFJS.version = '1.9.604';
PDFJS.build = 'f206ee56';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
@ -38415,7 +38418,7 @@ var WorkerMessageHandler = { @@ -38415,7 +38418,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '1.9.602';
var workerVersion = '1.9.604';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

17
build/pdf.js

@ -1629,6 +1629,9 @@ var DOMCMapReaderFactory = function () { @@ -1629,6 +1629,9 @@ var DOMCMapReaderFactory = function () {
var name = _ref2.name;
if (!this.baseUrl) {
return Promise.reject(new Error('CMap baseUrl must be specified, ' + 'see "PDFJS.cMapUrl" (and also "PDFJS.cMapPacked").'));
}
if (!name) {
return Promise.reject(new Error('CMap name must be specified.'));
}
@ -2946,7 +2949,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -2946,7 +2949,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '1.9.602';
var apiVersion = '1.9.604';
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
source.chunkedViewerLoading = !!pdfDataRangeTransport;
@ -4337,8 +4340,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -4337,8 +4340,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.9.602';
exports.build = build = '25806d17';
exports.version = version = '1.9.604';
exports.build = build = 'f206ee56';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -7410,8 +7413,8 @@ exports.SVGGraphics = SVGGraphics; @@ -7410,8 +7413,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '1.9.602';
var pdfjsBuild = '25806d17';
var pdfjsVersion = '1.9.604';
var pdfjsBuild = 'f206ee56';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(82);
var pdfjsDisplayAPI = __w_pdfjs_require__(48);
@ -13273,8 +13276,8 @@ if (!_global_scope2.default.PDFJS) { @@ -13273,8 +13276,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '1.9.602';
PDFJS.build = '25806d17';
PDFJS.version = '1.9.604';
PDFJS.build = 'f206ee56';
}
PDFJS.pdfBug = false;
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

6
build/pdf.worker.js vendored

@ -24540,8 +24540,8 @@ exports.getUnicodeForGlyph = getUnicodeForGlyph; @@ -24540,8 +24540,8 @@ exports.getUnicodeForGlyph = getUnicodeForGlyph;
"use strict";
var pdfjsVersion = '1.9.602';
var pdfjsBuild = '25806d17';
var pdfjsVersion = '1.9.604';
var pdfjsBuild = 'f206ee56';
var pdfjsCoreWorker = __w_pdfjs_require__(62);
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;
@ -24746,7 +24746,7 @@ var WorkerMessageHandler = { @@ -24746,7 +24746,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '1.9.602';
var workerVersion = '1.9.604';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}

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

2
lib/core/worker.js

@ -208,7 +208,7 @@ var WorkerMessageHandler = { @@ -208,7 +208,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '1.9.602';
var workerVersion = '1.9.604';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}

6
lib/display/api.js

@ -193,7 +193,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -193,7 +193,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '1.9.602';
var apiVersion = '1.9.604';
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
source.chunkedViewerLoading = !!pdfDataRangeTransport;
@ -1584,8 +1584,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -1584,8 +1584,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.9.602';
exports.build = build = '25806d17';
exports.version = version = '1.9.604';
exports.build = build = 'f206ee56';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;

3
lib/display/dom_utils.js

@ -102,6 +102,9 @@ var DOMCMapReaderFactory = function () { @@ -102,6 +102,9 @@ var DOMCMapReaderFactory = function () {
var name = _ref2.name;
if (!this.baseUrl) {
return Promise.reject(new Error('CMap baseUrl must be specified, ' + 'see "PDFJS.cMapUrl" (and also "PDFJS.cMapPacked").'));
}
if (!name) {
return Promise.reject(new Error('CMap name must be specified.'));
}

4
lib/display/global.js

@ -45,8 +45,8 @@ if (!_global_scope2.default.PDFJS) { @@ -45,8 +45,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '1.9.602';
PDFJS.build = '25806d17';
PDFJS.version = '1.9.604';
PDFJS.build = 'f206ee56';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {

4
lib/pdf.js

@ -14,8 +14,8 @@ @@ -14,8 +14,8 @@
*/
'use strict';
var pdfjsVersion = '1.9.602';
var pdfjsBuild = '25806d17';
var pdfjsVersion = '1.9.604';
var pdfjsBuild = 'f206ee56';
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,7 +14,7 @@ @@ -14,7 +14,7 @@
*/
'use strict';
var pdfjsVersion = '1.9.602';
var pdfjsBuild = '25806d17';
var pdfjsVersion = '1.9.604';
var pdfjsBuild = 'f206ee56';
var pdfjsCoreWorker = require('./core/worker.js');
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

33
lib/test/unit/cmap_spec.js

@ -256,7 +256,38 @@ describe('cmap', function () { @@ -256,7 +256,38 @@ describe('cmap', function () {
done.fail('No CMap should be loaded');
}, function (reason) {
expect(reason instanceof Error).toEqual(true);
expect(reason.message).toEqual('Unable to load CMap at: nullAdobe-Japan1-1');
expect(reason.message).toEqual('CMap baseUrl must be specified, ' + 'see "PDFJS.cMapUrl" (and also "PDFJS.cMapPacked").');
done();
});
});
it('attempts to load a built-in CMap with inconsistent API parameters', function (done) {
function tmpFetchBuiltInCMap(name) {
var CMapReaderFactory = void 0;
if ((0, _util.isNodeJS)()) {
CMapReaderFactory = new _test_utils.NodeCMapReaderFactory({
baseUrl: cMapUrl.node,
isCompressed: false
});
} else {
CMapReaderFactory = new _dom_utils.DOMCMapReaderFactory({
baseUrl: cMapUrl.dom,
isCompressed: false
});
}
return CMapReaderFactory.fetch({ name: name });
}
var cmapPromise = _cmap.CMapFactory.create({
encoding: _primitives.Name.get('Adobe-Japan1-1'),
fetchBuiltInCMap: tmpFetchBuiltInCMap,
useCMap: null
});
cmapPromise.then(function () {
done.fail('No CMap should be loaded');
}, function (reason) {
expect(reason instanceof Error).toEqual(true);
var message = reason.message;
expect(message.startsWith('Unable to load CMap at: ')).toEqual(true);
expect(message.endsWith('/external/bcmaps/Adobe-Japan1-1')).toEqual(true);
done();
});
});

3
lib/test/unit/test_utils.js

@ -81,6 +81,9 @@ var NodeCMapReaderFactory = function () { @@ -81,6 +81,9 @@ var NodeCMapReaderFactory = function () {
var name = _ref2.name;
if (!this.baseUrl) {
return Promise.reject(new Error('CMap baseUrl must be specified, ' + 'see "PDFJS.cMapUrl" (and also "PDFJS.cMapPacked").'));
}
if (!name) {
return Promise.reject(new Error('CMap name must be specified.'));
}

2
package.json

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

Loading…
Cancel
Save