Issue #644: bypassing identity cmap translation loading; resetting color space when stroke/fill color set

This commit is contained in:
notmasteryet 2011-11-15 18:23:45 -06:00
parent 4bdc252cb3
commit ef58ccd284
2 changed files with 21 additions and 1 deletions

View file

@ -522,7 +522,9 @@ var PartialEvaluator = (function partialEvaluator() {
var cmapObj = xref.fetchIfRef(toUnicode);
var charToUnicode = [];
if (isName(cmapObj)) {
error('ToUnicode file cmap translation not implemented');
var isIdentityMap = cmapObj.name.substr(0, 9) == 'Identity-';
if (!isIdentityMap)
error('ToUnicode file cmap translation not implemented');
} else if (isStream(cmapObj)) {
var tokens = [];
var token = '';