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. 87
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 87
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

87
build/pdf.combined.js

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

4
build/pdf.js

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

87
build/pdf.worker.js vendored

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

2
package.json

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

Loading…
Cancel
Save