1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Prevent CMapFactory.create from failing by passing the necessary parameters from PartialEvaluator_readToUnicode (issue 5010)

This commit is contained in:
Jonas Jenwald 2014-06-27 00:41:44 +02:00
parent 2e98f9095e
commit 04975acceb
5 changed files with 16 additions and 4 deletions

View file

@ -815,7 +815,7 @@ var CMapFactory = (function CMapFactoryClosure() {
if (BUILT_IN_CMAPS.indexOf(name) === -1) {
error('Unknown cMap name: ' + name);
}
assert (builtInCMapParams, 'buildin cmap parameters are not provided');
assert(builtInCMapParams, 'built-in cMap parameters are not provided');
if (builtInCMapParams.packed) {
return parseBinaryCMap(name, builtInCMapParams);