Browse Source

PDF.js version 1.5.343 - See mozilla/pdf.js@9228a04061a53a7882ed6f6a1ee262fb56b46b30

master v1.5.343
Pdf Bot 9 years ago
parent
commit
f646d33217
  1. 2
      bower.json
  2. 19
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 19
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

19
build/pdf.combined.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {})); @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {}));
// Use strict in our context only - users might not want it
'use strict';
var pdfjsVersion = '1.5.341';
var pdfjsBuild = '0da97ad';
var pdfjsVersion = '1.5.343';
var pdfjsBuild = '9228a04';
var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ?
@ -30649,9 +30649,11 @@ exports.TilingPattern = TilingPattern; @@ -30649,9 +30649,11 @@ exports.TilingPattern = TilingPattern;
var Util = sharedUtil.Util;
var assert = sharedUtil.assert;
var warn = sharedUtil.warn;
var error = sharedUtil.error;
var isInt = sharedUtil.isInt;
var isString = sharedUtil.isString;
var MissingDataException = sharedUtil.MissingDataException;
var isName = corePrimitives.isName;
var isCmd = corePrimitives.isCmd;
var isStream = corePrimitives.isStream;
@ -31499,6 +31501,7 @@ var CMapFactory = (function CMapFactoryClosure() { @@ -31499,6 +31501,7 @@ var CMapFactory = (function CMapFactoryClosure() {
var previous;
var embededUseCMap;
objLoop: while (true) {
try {
var obj = lexer.getObj();
if (isEOF(obj)) {
break;
@ -31535,6 +31538,13 @@ var CMapFactory = (function CMapFactoryClosure() { @@ -31535,6 +31538,13 @@ var CMapFactory = (function CMapFactoryClosure() {
break;
}
}
} catch (ex) {
if (ex instanceof MissingDataException) {
throw ex;
}
warn('Invalid cMap data: ' + ex);
continue;
}
}
if (!useCMap && embededUseCMap) {
@ -31544,9 +31554,8 @@ var CMapFactory = (function CMapFactoryClosure() { @@ -31544,9 +31554,8 @@ var CMapFactory = (function CMapFactoryClosure() {
}
if (useCMap) {
return extendCMap(cMap, builtInCMapParams, useCMap);
} else {
return Promise.resolve(cMap);
}
return Promise.resolve(cMap);
}
function extendCMap(cMap, builtInCMapParams, useCMap) {
@ -31608,8 +31617,6 @@ var CMapFactory = (function CMapFactoryClosure() { @@ -31608,8 +31617,6 @@ var CMapFactory = (function CMapFactoryClosure() {
parseCMap(cMap, lexer, builtInCMapParams, null).then(
function (parsedCMap) {
resolve(parsedCMap);
}).catch(function (e) {
reject(new Error({ message: 'Invalid CMap data', error: e }));
});
} else {
reject(new Error('Unable to get cMap at: ' + url));

4
build/pdf.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {})); @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {}));
// Use strict in our context only - users might not want it
'use strict';
var pdfjsVersion = '1.5.341';
var pdfjsBuild = '0da97ad';
var pdfjsVersion = '1.5.343';
var pdfjsBuild = '9228a04';
var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ?

19
build/pdf.worker.js vendored

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {})); @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {}));
// Use strict in our context only - users might not want it
'use strict';
var pdfjsVersion = '1.5.341';
var pdfjsBuild = '0da97ad';
var pdfjsVersion = '1.5.343';
var pdfjsBuild = '9228a04';
var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ?
@ -26785,9 +26785,11 @@ exports.Type1Parser = Type1Parser; @@ -26785,9 +26785,11 @@ exports.Type1Parser = Type1Parser;
var Util = sharedUtil.Util;
var assert = sharedUtil.assert;
var warn = sharedUtil.warn;
var error = sharedUtil.error;
var isInt = sharedUtil.isInt;
var isString = sharedUtil.isString;
var MissingDataException = sharedUtil.MissingDataException;
var isName = corePrimitives.isName;
var isCmd = corePrimitives.isCmd;
var isStream = corePrimitives.isStream;
@ -27635,6 +27637,7 @@ var CMapFactory = (function CMapFactoryClosure() { @@ -27635,6 +27637,7 @@ var CMapFactory = (function CMapFactoryClosure() {
var previous;
var embededUseCMap;
objLoop: while (true) {
try {
var obj = lexer.getObj();
if (isEOF(obj)) {
break;
@ -27671,6 +27674,13 @@ var CMapFactory = (function CMapFactoryClosure() { @@ -27671,6 +27674,13 @@ var CMapFactory = (function CMapFactoryClosure() {
break;
}
}
} catch (ex) {
if (ex instanceof MissingDataException) {
throw ex;
}
warn('Invalid cMap data: ' + ex);
continue;
}
}
if (!useCMap && embededUseCMap) {
@ -27680,9 +27690,8 @@ var CMapFactory = (function CMapFactoryClosure() { @@ -27680,9 +27690,8 @@ var CMapFactory = (function CMapFactoryClosure() {
}
if (useCMap) {
return extendCMap(cMap, builtInCMapParams, useCMap);
} else {
return Promise.resolve(cMap);
}
return Promise.resolve(cMap);
}
function extendCMap(cMap, builtInCMapParams, useCMap) {
@ -27744,8 +27753,6 @@ var CMapFactory = (function CMapFactoryClosure() { @@ -27744,8 +27753,6 @@ var CMapFactory = (function CMapFactoryClosure() {
parseCMap(cMap, lexer, builtInCMapParams, null).then(
function (parsedCMap) {
resolve(parsedCMap);
}).catch(function (e) {
reject(new Error({ message: 'Invalid CMap data', error: e }));
});
} else {
reject(new Error('Unable to get cMap at: ' + url));

2
package.json

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

Loading…
Cancel
Save