Browse Source

PDF.js version 2.0.95 - See mozilla/pdf.js@99b62fe3d45571792b977302d046aa6cc75f4655

master v2.0.95
pdfjsbot 7 years ago
parent
commit
8c1edbe1c3
  1. 2
      bower.json
  2. 46
      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. 36
      build/pdf.worker.js
  8. 2
      build/pdf.worker.js.map
  9. 2
      build/pdf.worker.min.js
  10. 4
      lib/core/cmap.js
  11. 17
      lib/core/crypto.js
  12. 3
      lib/core/fonts.js
  13. 4
      lib/core/parser.js
  14. 2
      lib/core/type1_parser.js
  15. 2
      lib/core/worker.js
  16. 6
      lib/display/api.js
  17. 4
      lib/display/global.js
  18. 4
      lib/pdf.js
  19. 4
      lib/pdf.worker.js
  20. 2
      package.json

2
bower.json

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

46
build/pdf.combined.js

@ -5122,7 +5122,7 @@ var Parser = function ParserClosure() { @@ -5122,7 +5122,7 @@ var Parser = function ParserClosure() {
makeFilter: function Parser_makeFilter(stream, name, maybeLength, params) {
if (maybeLength === 0) {
(0, _util.warn)('Empty "' + name + '" stream.');
return new _stream.NullStream(stream);
return new _stream.NullStream();
}
try {
var xrefStreamStats = this.xref.stats.streamTypes;
@ -5179,7 +5179,7 @@ var Parser = function ParserClosure() { @@ -5179,7 +5179,7 @@ var Parser = function ParserClosure() {
throw ex;
}
(0, _util.warn)('Invalid stream: \"' + ex + '\"');
return new _stream.NullStream(stream);
return new _stream.NullStream();
}
}
};
@ -11111,7 +11111,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -11111,7 +11111,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '2.0.91';
var apiVersion = '2.0.95';
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
source.chunkedViewerLoading = !!pdfDataRangeTransport;
@ -12387,8 +12387,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -12387,8 +12387,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.91';
exports.build = build = '6521d2fd';
exports.version = version = '2.0.95';
exports.build = build = '99b62fe3';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -17769,7 +17769,7 @@ var AES128Cipher = function AES128CipherClosure() { @@ -17769,7 +17769,7 @@ var AES128Cipher = function AES128CipherClosure() {
return state;
}
function encrypt128(input, key) {
var t, u, v, k;
var t, u, v, j, k;
var state = new Uint8Array(16);
state.set(input);
for (j = 0; j < 16; ++j) {
@ -17797,7 +17797,7 @@ var AES128Cipher = function AES128CipherClosure() { @@ -17797,7 +17797,7 @@ var AES128Cipher = function AES128CipherClosure() {
state[7] = v;
state[11] = u;
state[15] = t;
for (var j = 0; j < 16; j += 4) {
for (j = 0; j < 16; j += 4) {
var s0 = state[j + 0],
s1 = state[j + 1];
var s2 = state[j + 2],
@ -17973,16 +17973,17 @@ var AES256Cipher = function AES256CipherClosure() { @@ -17973,16 +17973,17 @@ var AES256Cipher = function AES256CipherClosure() {
var r = 1;
result.set(cipherKey);
for (var j = 32, i = 1; j < b; ++i) {
var t1, t2, t3, t4;
if (j % 32 === 16) {
t1 = s[t1];
t2 = s[t2];
t3 = s[t3];
t4 = s[t4];
} else if (j % 32 === 0) {
var t1 = result[j - 3],
t2 = result[j - 2],
t3 = result[j - 1],
t4 = result[j - 4];
t1 = result[j - 3];
t2 = result[j - 2];
t3 = result[j - 1];
t4 = result[j - 4];
t1 = s[t1];
t2 = s[t2];
t3 = s[t3];
@ -18075,7 +18076,7 @@ var AES256Cipher = function AES256CipherClosure() { @@ -18075,7 +18076,7 @@ var AES256Cipher = function AES256CipherClosure() {
return state;
}
function encrypt256(input, key) {
var t, u, v, k;
var t, u, v, i, j, k;
var state = new Uint8Array(16);
state.set(input);
for (j = 0; j < 16; ++j) {
@ -18103,7 +18104,7 @@ var AES256Cipher = function AES256CipherClosure() { @@ -18103,7 +18104,7 @@ var AES256Cipher = function AES256CipherClosure() {
state[7] = v;
state[11] = u;
state[15] = t;
for (var j = 0; j < 16; j += 4) {
for (j = 0; j < 16; j += 4) {
var s0 = state[j + 0],
s1 = state[j + 1];
var s2 = state[j + 2],
@ -29504,8 +29505,8 @@ exports.SVGGraphics = SVGGraphics; @@ -29504,8 +29505,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '2.0.91';
var pdfjsBuild = '6521d2fd';
var pdfjsVersion = '2.0.95';
var pdfjsBuild = '99b62fe3';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(129);
var pdfjsDisplayAPI = __w_pdfjs_require__(63);
@ -35115,8 +35116,8 @@ if (!_global_scope2.default.PDFJS) { @@ -35115,8 +35116,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '2.0.91';
PDFJS.build = '6521d2fd';
PDFJS.version = '2.0.95';
PDFJS.build = '99b62fe3';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
@ -38045,7 +38046,7 @@ var WorkerMessageHandler = { @@ -38045,7 +38046,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '2.0.91';
var workerVersion = '2.0.95';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}
@ -42376,14 +42377,14 @@ var BinaryCMapReader = function BinaryCMapReaderClosure() { @@ -42376,14 +42377,14 @@ var BinaryCMapReader = function BinaryCMapReaderClosure() {
stream.readHex(start, dataSize);
stream.readHexNumber(end, dataSize);
addHex(end, start, dataSize);
code = stream.readNumber();
stream.readNumber();
for (i = 1; i < subitemsCount; i++) {
incHex(end, dataSize);
stream.readHexNumber(start, dataSize);
addHex(start, end, dataSize);
stream.readHexNumber(end, dataSize);
addHex(end, start, dataSize);
code = stream.readNumber();
stream.readNumber();
}
break;
case 2:
@ -44543,7 +44544,6 @@ var Font = function FontClosure() { @@ -44543,7 +44544,6 @@ var Font = function FontClosure() {
}
if (glyphId > 0 && hasGlyph(glyphId)) {
charCodeToGlyphId[charCode] = glyphId;
found = true;
}
}
}
@ -44981,7 +44981,6 @@ var Type1Font = function Type1FontClosure() { @@ -44981,7 +44981,6 @@ var Type1Font = function Type1FontClosure() {
headerBlockLength = pfbHeader[5] << 24 | pfbHeader[4] << 16 | pfbHeader[3] << 8 | pfbHeader[2];
}
var headerBlock = getHeaderBlock(file, headerBlockLength);
headerBlockLength = headerBlock.length;
var headerBlockParser = new _type1_parser.Type1Parser(headerBlock.stream, false, SEAC_ANALYSIS_ENABLED);
headerBlockParser.extractFontHeader(properties);
if (pfbHeaderPresent) {
@ -44989,7 +44988,6 @@ var Type1Font = function Type1FontClosure() { @@ -44989,7 +44988,6 @@ var Type1Font = function Type1FontClosure() {
eexecBlockLength = pfbHeader[5] << 24 | pfbHeader[4] << 16 | pfbHeader[3] << 8 | pfbHeader[2];
}
var eexecBlock = getEexecBlock(file, eexecBlockLength);
eexecBlockLength = eexecBlock.length;
var eexecBlockParser = new _type1_parser.Type1Parser(eexecBlock.stream, true, SEAC_ANALYSIS_ENABLED);
var data = eexecBlockParser.extractFontProgram();
for (var info in data.properties) {
@ -46416,7 +46414,7 @@ var Type1Parser = function Type1ParserClosure() { @@ -46416,7 +46414,7 @@ var Type1Parser = function Type1ParserClosure() {
case 'Subrs':
this.readInt();
this.getToken();
while ((token = this.getToken()) === 'dup') {
while (this.getToken() === 'dup') {
var index = this.readInt();
length = this.readInt();
this.getToken();

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

14
build/pdf.js

@ -3291,7 +3291,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -3291,7 +3291,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '2.0.91';
var apiVersion = '2.0.95';
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
source.chunkedViewerLoading = !!pdfDataRangeTransport;
@ -4654,8 +4654,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -4654,8 +4654,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.91';
exports.build = build = '6521d2fd';
exports.version = version = '2.0.95';
exports.build = build = '99b62fe3';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -7720,8 +7720,8 @@ exports.SVGGraphics = SVGGraphics; @@ -7720,8 +7720,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '2.0.91';
var pdfjsBuild = '6521d2fd';
var pdfjsVersion = '2.0.95';
var pdfjsBuild = '99b62fe3';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(113);
var pdfjsDisplayAPI = __w_pdfjs_require__(57);
@ -13331,8 +13331,8 @@ if (!_global_scope2.default.PDFJS) { @@ -13331,8 +13331,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '2.0.91';
PDFJS.build = '6521d2fd';
PDFJS.version = '2.0.95';
PDFJS.build = '99b62fe3';
}
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

36
build/pdf.worker.js vendored

@ -4663,7 +4663,7 @@ var Parser = function ParserClosure() { @@ -4663,7 +4663,7 @@ var Parser = function ParserClosure() {
makeFilter: function Parser_makeFilter(stream, name, maybeLength, params) {
if (maybeLength === 0) {
(0, _util.warn)('Empty "' + name + '" stream.');
return new _stream.NullStream(stream);
return new _stream.NullStream();
}
try {
var xrefStreamStats = this.xref.stats.streamTypes;
@ -4720,7 +4720,7 @@ var Parser = function ParserClosure() { @@ -4720,7 +4720,7 @@ var Parser = function ParserClosure() {
throw ex;
}
(0, _util.warn)('Invalid stream: \"' + ex + '\"');
return new _stream.NullStream(stream);
return new _stream.NullStream();
}
}
};
@ -15353,7 +15353,7 @@ var AES128Cipher = function AES128CipherClosure() { @@ -15353,7 +15353,7 @@ var AES128Cipher = function AES128CipherClosure() {
return state;
}
function encrypt128(input, key) {
var t, u, v, k;
var t, u, v, j, k;
var state = new Uint8Array(16);
state.set(input);
for (j = 0; j < 16; ++j) {
@ -15381,7 +15381,7 @@ var AES128Cipher = function AES128CipherClosure() { @@ -15381,7 +15381,7 @@ var AES128Cipher = function AES128CipherClosure() {
state[7] = v;
state[11] = u;
state[15] = t;
for (var j = 0; j < 16; j += 4) {
for (j = 0; j < 16; j += 4) {
var s0 = state[j + 0],
s1 = state[j + 1];
var s2 = state[j + 2],
@ -15557,16 +15557,17 @@ var AES256Cipher = function AES256CipherClosure() { @@ -15557,16 +15557,17 @@ var AES256Cipher = function AES256CipherClosure() {
var r = 1;
result.set(cipherKey);
for (var j = 32, i = 1; j < b; ++i) {
var t1, t2, t3, t4;
if (j % 32 === 16) {
t1 = s[t1];
t2 = s[t2];
t3 = s[t3];
t4 = s[t4];
} else if (j % 32 === 0) {
var t1 = result[j - 3],
t2 = result[j - 2],
t3 = result[j - 1],
t4 = result[j - 4];
t1 = result[j - 3];
t2 = result[j - 2];
t3 = result[j - 1];
t4 = result[j - 4];
t1 = s[t1];
t2 = s[t2];
t3 = s[t3];
@ -15659,7 +15660,7 @@ var AES256Cipher = function AES256CipherClosure() { @@ -15659,7 +15660,7 @@ var AES256Cipher = function AES256CipherClosure() {
return state;
}
function encrypt256(input, key) {
var t, u, v, k;
var t, u, v, i, j, k;
var state = new Uint8Array(16);
state.set(input);
for (j = 0; j < 16; ++j) {
@ -15687,7 +15688,7 @@ var AES256Cipher = function AES256CipherClosure() { @@ -15687,7 +15688,7 @@ var AES256Cipher = function AES256CipherClosure() {
state[7] = v;
state[11] = u;
state[15] = t;
for (var j = 0; j < 16; j += 4) {
for (j = 0; j < 16; j += 4) {
var s0 = state[j + 0],
s1 = state[j + 1];
var s2 = state[j + 2],
@ -24512,8 +24513,8 @@ exports.PostScriptCompiler = PostScriptCompiler; @@ -24512,8 +24513,8 @@ exports.PostScriptCompiler = PostScriptCompiler;
"use strict";
var pdfjsVersion = '2.0.91';
var pdfjsBuild = '6521d2fd';
var pdfjsVersion = '2.0.95';
var pdfjsBuild = '99b62fe3';
var pdfjsCoreWorker = __w_pdfjs_require__(71);
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;
@ -24718,7 +24719,7 @@ var WorkerMessageHandler = { @@ -24718,7 +24719,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '2.0.91';
var workerVersion = '2.0.95';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}
@ -34582,14 +34583,14 @@ var BinaryCMapReader = function BinaryCMapReaderClosure() { @@ -34582,14 +34583,14 @@ var BinaryCMapReader = function BinaryCMapReaderClosure() {
stream.readHex(start, dataSize);
stream.readHexNumber(end, dataSize);
addHex(end, start, dataSize);
code = stream.readNumber();
stream.readNumber();
for (i = 1; i < subitemsCount; i++) {
incHex(end, dataSize);
stream.readHexNumber(start, dataSize);
addHex(start, end, dataSize);
stream.readHexNumber(end, dataSize);
addHex(end, start, dataSize);
code = stream.readNumber();
stream.readNumber();
}
break;
case 2:
@ -36749,7 +36750,6 @@ var Font = function FontClosure() { @@ -36749,7 +36750,6 @@ var Font = function FontClosure() {
}
if (glyphId > 0 && hasGlyph(glyphId)) {
charCodeToGlyphId[charCode] = glyphId;
found = true;
}
}
}
@ -37187,7 +37187,6 @@ var Type1Font = function Type1FontClosure() { @@ -37187,7 +37187,6 @@ var Type1Font = function Type1FontClosure() {
headerBlockLength = pfbHeader[5] << 24 | pfbHeader[4] << 16 | pfbHeader[3] << 8 | pfbHeader[2];
}
var headerBlock = getHeaderBlock(file, headerBlockLength);
headerBlockLength = headerBlock.length;
var headerBlockParser = new _type1_parser.Type1Parser(headerBlock.stream, false, SEAC_ANALYSIS_ENABLED);
headerBlockParser.extractFontHeader(properties);
if (pfbHeaderPresent) {
@ -37195,7 +37194,6 @@ var Type1Font = function Type1FontClosure() { @@ -37195,7 +37194,6 @@ var Type1Font = function Type1FontClosure() {
eexecBlockLength = pfbHeader[5] << 24 | pfbHeader[4] << 16 | pfbHeader[3] << 8 | pfbHeader[2];
}
var eexecBlock = getEexecBlock(file, eexecBlockLength);
eexecBlockLength = eexecBlock.length;
var eexecBlockParser = new _type1_parser.Type1Parser(eexecBlock.stream, true, SEAC_ANALYSIS_ENABLED);
var data = eexecBlockParser.extractFontProgram();
for (var info in data.properties) {
@ -38622,7 +38620,7 @@ var Type1Parser = function Type1ParserClosure() { @@ -38622,7 +38620,7 @@ var Type1Parser = function Type1ParserClosure() {
case 'Subrs':
this.readInt();
this.getToken();
while ((token = this.getToken()) === 'dup') {
while (this.getToken() === 'dup') {
var index = this.readInt();
length = this.readInt();
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

4
lib/core/cmap.js

@ -362,14 +362,14 @@ var BinaryCMapReader = function BinaryCMapReaderClosure() { @@ -362,14 +362,14 @@ var BinaryCMapReader = function BinaryCMapReaderClosure() {
stream.readHex(start, dataSize);
stream.readHexNumber(end, dataSize);
addHex(end, start, dataSize);
code = stream.readNumber();
stream.readNumber();
for (i = 1; i < subitemsCount; i++) {
incHex(end, dataSize);
stream.readHexNumber(start, dataSize);
addHex(start, end, dataSize);
stream.readHexNumber(end, dataSize);
addHex(end, start, dataSize);
code = stream.readNumber();
stream.readNumber();
}
break;
case 2:

17
lib/core/crypto.js

@ -645,7 +645,7 @@ var AES128Cipher = function AES128CipherClosure() { @@ -645,7 +645,7 @@ var AES128Cipher = function AES128CipherClosure() {
return state;
}
function encrypt128(input, key) {
var t, u, v, k;
var t, u, v, j, k;
var state = new Uint8Array(16);
state.set(input);
for (j = 0; j < 16; ++j) {
@ -673,7 +673,7 @@ var AES128Cipher = function AES128CipherClosure() { @@ -673,7 +673,7 @@ var AES128Cipher = function AES128CipherClosure() {
state[7] = v;
state[11] = u;
state[15] = t;
for (var j = 0; j < 16; j += 4) {
for (j = 0; j < 16; j += 4) {
var s0 = state[j + 0],
s1 = state[j + 1];
var s2 = state[j + 2],
@ -849,16 +849,17 @@ var AES256Cipher = function AES256CipherClosure() { @@ -849,16 +849,17 @@ var AES256Cipher = function AES256CipherClosure() {
var r = 1;
result.set(cipherKey);
for (var j = 32, i = 1; j < b; ++i) {
var t1, t2, t3, t4;
if (j % 32 === 16) {
t1 = s[t1];
t2 = s[t2];
t3 = s[t3];
t4 = s[t4];
} else if (j % 32 === 0) {
var t1 = result[j - 3],
t2 = result[j - 2],
t3 = result[j - 1],
t4 = result[j - 4];
t1 = result[j - 3];
t2 = result[j - 2];
t3 = result[j - 1];
t4 = result[j - 4];
t1 = s[t1];
t2 = s[t2];
t3 = s[t3];
@ -951,7 +952,7 @@ var AES256Cipher = function AES256CipherClosure() { @@ -951,7 +952,7 @@ var AES256Cipher = function AES256CipherClosure() {
return state;
}
function encrypt256(input, key) {
var t, u, v, k;
var t, u, v, i, j, k;
var state = new Uint8Array(16);
state.set(input);
for (j = 0; j < 16; ++j) {
@ -979,7 +980,7 @@ var AES256Cipher = function AES256CipherClosure() { @@ -979,7 +980,7 @@ var AES256Cipher = function AES256CipherClosure() {
state[7] = v;
state[11] = u;
state[15] = t;
for (var j = 0; j < 16; j += 4) {
for (j = 0; j < 16; j += 4) {
var s0 = state[j + 0],
s1 = state[j + 1];
var s2 = state[j + 2],

3
lib/core/fonts.js

@ -1812,7 +1812,6 @@ var Font = function FontClosure() { @@ -1812,7 +1812,6 @@ var Font = function FontClosure() {
}
if (glyphId > 0 && hasGlyph(glyphId)) {
charCodeToGlyphId[charCode] = glyphId;
found = true;
}
}
}
@ -2250,7 +2249,6 @@ var Type1Font = function Type1FontClosure() { @@ -2250,7 +2249,6 @@ var Type1Font = function Type1FontClosure() {
headerBlockLength = pfbHeader[5] << 24 | pfbHeader[4] << 16 | pfbHeader[3] << 8 | pfbHeader[2];
}
var headerBlock = getHeaderBlock(file, headerBlockLength);
headerBlockLength = headerBlock.length;
var headerBlockParser = new _type1_parser.Type1Parser(headerBlock.stream, false, SEAC_ANALYSIS_ENABLED);
headerBlockParser.extractFontHeader(properties);
if (pfbHeaderPresent) {
@ -2258,7 +2256,6 @@ var Type1Font = function Type1FontClosure() { @@ -2258,7 +2256,6 @@ var Type1Font = function Type1FontClosure() {
eexecBlockLength = pfbHeader[5] << 24 | pfbHeader[4] << 16 | pfbHeader[3] << 8 | pfbHeader[2];
}
var eexecBlock = getEexecBlock(file, eexecBlockLength);
eexecBlockLength = eexecBlock.length;
var eexecBlockParser = new _type1_parser.Type1Parser(eexecBlock.stream, true, SEAC_ANALYSIS_ENABLED);
var data = eexecBlockParser.extractFontProgram();
for (var info in data.properties) {

4
lib/core/parser.js

@ -485,7 +485,7 @@ var Parser = function ParserClosure() { @@ -485,7 +485,7 @@ var Parser = function ParserClosure() {
makeFilter: function Parser_makeFilter(stream, name, maybeLength, params) {
if (maybeLength === 0) {
(0, _util.warn)('Empty "' + name + '" stream.');
return new _stream.NullStream(stream);
return new _stream.NullStream();
}
try {
var xrefStreamStats = this.xref.stats.streamTypes;
@ -542,7 +542,7 @@ var Parser = function ParserClosure() { @@ -542,7 +542,7 @@ var Parser = function ParserClosure() {
throw ex;
}
(0, _util.warn)('Invalid stream: \"' + ex + '\"');
return new _stream.NullStream(stream);
return new _stream.NullStream();
}
}
};

2
lib/core/type1_parser.js

@ -450,7 +450,7 @@ var Type1Parser = function Type1ParserClosure() { @@ -450,7 +450,7 @@ var Type1Parser = function Type1ParserClosure() {
case 'Subrs':
this.readInt();
this.getToken();
while ((token = this.getToken()) === 'dup') {
while (this.getToken() === 'dup') {
var index = this.readInt();
length = this.readInt();
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 = '2.0.91';
var workerVersion = '2.0.95';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}

6
lib/display/api.js

@ -172,7 +172,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -172,7 +172,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '2.0.91';
var apiVersion = '2.0.95';
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
source.chunkedViewerLoading = !!pdfDataRangeTransport;
@ -1535,8 +1535,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -1535,8 +1535,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.91';
exports.build = build = '6521d2fd';
exports.version = version = '2.0.95';
exports.build = build = '99b62fe3';
}
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 = '2.0.91';
PDFJS.build = '6521d2fd';
PDFJS.version = '2.0.95';
PDFJS.build = '99b62fe3';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {

4
lib/pdf.js

@ -14,8 +14,8 @@ @@ -14,8 +14,8 @@
*/
'use strict';
var pdfjsVersion = '2.0.91';
var pdfjsBuild = '6521d2fd';
var pdfjsVersion = '2.0.95';
var pdfjsBuild = '99b62fe3';
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 = '2.0.91';
var pdfjsBuild = '6521d2fd';
var pdfjsVersion = '2.0.95';
var pdfjsBuild = '99b62fe3';
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": "2.0.91",
"version": "2.0.95",
"main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.",
"keywords": [

Loading…
Cancel
Save