Browse Source

PDF.js version 1.9.648 - See mozilla/pdf.js@56c14e27e648d87375e89c9c4ee895c93630f3fe

master v1.9.648
pdfjsbot 7 years ago
parent
commit
68dc4dfcb9
  1. 2
      bower.json
  2. 30
      build/pdf.combined.js
  3. 2
      build/pdf.combined.js.map
  4. 14
      build/pdf.js
  5. 2
      build/pdf.js.map
  6. 2
      build/pdf.min.js
  7. 20
      build/pdf.worker.js
  8. 2
      build/pdf.worker.js.map
  9. 2
      build/pdf.worker.min.js
  10. 14
      lib/core/type1_parser.js
  11. 2
      lib/core/worker.js
  12. 6
      lib/display/api.js
  13. 4
      lib/display/global.js
  14. 4
      lib/pdf.js
  15. 4
      lib/pdf.worker.js
  16. 2
      package.json

2
bower.json

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

30
build/pdf.combined.js

@ -11634,7 +11634,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -11634,7 +11634,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '1.9.646';
var apiVersion = '1.9.648';
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
source.chunkedViewerLoading = !!pdfDataRangeTransport;
@ -12938,8 +12938,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -12938,8 +12938,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.9.646';
exports.build = build = '4c384e15';
exports.version = version = '1.9.648';
exports.build = build = '56c14e27';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -30054,8 +30054,8 @@ exports.SVGGraphics = SVGGraphics; @@ -30054,8 +30054,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '1.9.646';
var pdfjsBuild = '4c384e15';
var pdfjsVersion = '1.9.648';
var pdfjsBuild = '56c14e27';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(116);
var pdfjsDisplayAPI = __w_pdfjs_require__(65);
@ -36219,8 +36219,8 @@ if (!_global_scope2.default.PDFJS) { @@ -36219,8 +36219,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '1.9.646';
PDFJS.build = '4c384e15';
PDFJS.version = '1.9.648';
PDFJS.build = '56c14e27';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
@ -39177,7 +39177,7 @@ var WorkerMessageHandler = { @@ -39177,7 +39177,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '1.9.646';
var workerVersion = '1.9.648';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}
@ -46531,6 +46531,10 @@ var Type1CharString = function Type1CharStringClosure() { @@ -46531,6 +46531,10 @@ var Type1CharString = function Type1CharStringClosure() {
break;
}
subrNumber = this.stack.pop();
if (!subrs[subrNumber]) {
error = true;
break;
}
error = this.convert(subrs[subrNumber], subrs, seacAnalysisEnabled);
break;
case 11:
@ -46809,6 +46813,12 @@ var Type1Parser = function Type1ParserClosure() { @@ -46809,6 +46813,12 @@ var Type1Parser = function Type1ParserClosure() {
} while (ch >= 0 && !(0, _util.isSpace)(ch) && !isSpecial(ch));
return token;
},
readCharStrings: function Type1Parser_readCharStrings(bytes, lenIV) {
if (lenIV === -1) {
return bytes;
}
return decrypt(bytes, CHAR_STRS_ENCRYPT_KEY, lenIV);
},
extractFontProgram: function Type1Parser_extractFontProgram() {
var stream = this.stream;
var subrs = [],
@ -46845,7 +46855,7 @@ var Type1Parser = function Type1ParserClosure() { @@ -46845,7 +46855,7 @@ var Type1Parser = function Type1ParserClosure() {
this.getToken();
data = stream.makeSubStream(stream.pos, length);
lenIV = program.properties.privateData['lenIV'];
encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
encoded = this.readCharStrings(data.getBytes(), lenIV);
stream.skip(length);
this.nextChar();
token = this.getToken();
@ -46867,7 +46877,7 @@ var Type1Parser = function Type1ParserClosure() { @@ -46867,7 +46877,7 @@ var Type1Parser = function Type1ParserClosure() {
this.getToken();
data = stream.makeSubStream(stream.pos, length);
lenIV = program.properties.privateData['lenIV'];
encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
encoded = this.readCharStrings(data.getBytes(), lenIV);
stream.skip(length);
this.nextChar();
token = this.getToken();

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

14
build/pdf.js

@ -3239,7 +3239,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -3239,7 +3239,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '1.9.646';
var apiVersion = '1.9.648';
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
source.chunkedViewerLoading = !!pdfDataRangeTransport;
@ -4630,8 +4630,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -4630,8 +4630,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.9.646';
exports.build = build = '4c384e15';
exports.version = version = '1.9.648';
exports.build = build = '56c14e27';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -7703,8 +7703,8 @@ exports.SVGGraphics = SVGGraphics; @@ -7703,8 +7703,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '1.9.646';
var pdfjsBuild = '4c384e15';
var pdfjsVersion = '1.9.648';
var pdfjsBuild = '56c14e27';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(100);
var pdfjsDisplayAPI = __w_pdfjs_require__(59);
@ -13868,8 +13868,8 @@ if (!_global_scope2.default.PDFJS) { @@ -13868,8 +13868,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '1.9.646';
PDFJS.build = '4c384e15';
PDFJS.version = '1.9.648';
PDFJS.build = '56c14e27';
}
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

20
build/pdf.worker.js vendored

@ -24998,8 +24998,8 @@ exports.PostScriptCompiler = PostScriptCompiler; @@ -24998,8 +24998,8 @@ exports.PostScriptCompiler = PostScriptCompiler;
"use strict";
var pdfjsVersion = '1.9.646';
var pdfjsBuild = '4c384e15';
var pdfjsVersion = '1.9.648';
var pdfjsBuild = '56c14e27';
var pdfjsCoreWorker = __w_pdfjs_require__(73);
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;
@ -25204,7 +25204,7 @@ var WorkerMessageHandler = { @@ -25204,7 +25204,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '1.9.646';
var workerVersion = '1.9.648';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}
@ -38644,6 +38644,10 @@ var Type1CharString = function Type1CharStringClosure() { @@ -38644,6 +38644,10 @@ var Type1CharString = function Type1CharStringClosure() {
break;
}
subrNumber = this.stack.pop();
if (!subrs[subrNumber]) {
error = true;
break;
}
error = this.convert(subrs[subrNumber], subrs, seacAnalysisEnabled);
break;
case 11:
@ -38922,6 +38926,12 @@ var Type1Parser = function Type1ParserClosure() { @@ -38922,6 +38926,12 @@ var Type1Parser = function Type1ParserClosure() {
} while (ch >= 0 && !(0, _util.isSpace)(ch) && !isSpecial(ch));
return token;
},
readCharStrings: function Type1Parser_readCharStrings(bytes, lenIV) {
if (lenIV === -1) {
return bytes;
}
return decrypt(bytes, CHAR_STRS_ENCRYPT_KEY, lenIV);
},
extractFontProgram: function Type1Parser_extractFontProgram() {
var stream = this.stream;
var subrs = [],
@ -38958,7 +38968,7 @@ var Type1Parser = function Type1ParserClosure() { @@ -38958,7 +38968,7 @@ var Type1Parser = function Type1ParserClosure() {
this.getToken();
data = stream.makeSubStream(stream.pos, length);
lenIV = program.properties.privateData['lenIV'];
encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
encoded = this.readCharStrings(data.getBytes(), lenIV);
stream.skip(length);
this.nextChar();
token = this.getToken();
@ -38980,7 +38990,7 @@ var Type1Parser = function Type1ParserClosure() { @@ -38980,7 +38990,7 @@ var Type1Parser = function Type1ParserClosure() {
this.getToken();
data = stream.makeSubStream(stream.pos, length);
lenIV = program.properties.privateData['lenIV'];
encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
encoded = this.readCharStrings(data.getBytes(), lenIV);
stream.skip(length);
this.nextChar();
token = this.getToken();

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

14
lib/core/type1_parser.js

@ -110,6 +110,10 @@ var Type1CharString = function Type1CharStringClosure() { @@ -110,6 +110,10 @@ var Type1CharString = function Type1CharStringClosure() {
break;
}
subrNumber = this.stack.pop();
if (!subrs[subrNumber]) {
error = true;
break;
}
error = this.convert(subrs[subrNumber], subrs, seacAnalysisEnabled);
break;
case 11:
@ -388,6 +392,12 @@ var Type1Parser = function Type1ParserClosure() { @@ -388,6 +392,12 @@ var Type1Parser = function Type1ParserClosure() {
} while (ch >= 0 && !(0, _util.isSpace)(ch) && !isSpecial(ch));
return token;
},
readCharStrings: function Type1Parser_readCharStrings(bytes, lenIV) {
if (lenIV === -1) {
return bytes;
}
return decrypt(bytes, CHAR_STRS_ENCRYPT_KEY, lenIV);
},
extractFontProgram: function Type1Parser_extractFontProgram() {
var stream = this.stream;
var subrs = [],
@ -424,7 +434,7 @@ var Type1Parser = function Type1ParserClosure() { @@ -424,7 +434,7 @@ var Type1Parser = function Type1ParserClosure() {
this.getToken();
data = stream.makeSubStream(stream.pos, length);
lenIV = program.properties.privateData['lenIV'];
encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
encoded = this.readCharStrings(data.getBytes(), lenIV);
stream.skip(length);
this.nextChar();
token = this.getToken();
@ -446,7 +456,7 @@ var Type1Parser = function Type1ParserClosure() { @@ -446,7 +456,7 @@ var Type1Parser = function Type1ParserClosure() {
this.getToken();
data = stream.makeSubStream(stream.pos, length);
lenIV = program.properties.privateData['lenIV'];
encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
encoded = this.readCharStrings(data.getBytes(), lenIV);
stream.skip(length);
this.nextChar();
token = this.getToken();

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.646';
var workerVersion = '1.9.648';
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.646';
var apiVersion = '1.9.648';
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.646';
exports.build = build = '4c384e15';
exports.version = version = '1.9.648';
exports.build = build = '56c14e27';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;

4
lib/display/global.js

@ -44,8 +44,8 @@ if (!_global_scope2.default.PDFJS) { @@ -44,8 +44,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '1.9.646';
PDFJS.build = '4c384e15';
PDFJS.version = '1.9.648';
PDFJS.build = '56c14e27';
}
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.646';
var pdfjsBuild = '4c384e15';
var pdfjsVersion = '1.9.648';
var pdfjsBuild = '56c14e27';
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.646';
var pdfjsBuild = '4c384e15';
var pdfjsVersion = '1.9.648';
var pdfjsBuild = '56c14e27';
var pdfjsCoreWorker = require('./core/worker.js');
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

2
package.json

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

Loading…
Cancel
Save