|
|
@ -1567,6 +1567,21 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { |
|
|
|
hash.update(encoding.name); |
|
|
|
hash.update(encoding.name); |
|
|
|
} else if (isRef(encoding)) { |
|
|
|
} else if (isRef(encoding)) { |
|
|
|
hash.update(encoding.num + '_' + encoding.gen); |
|
|
|
hash.update(encoding.num + '_' + encoding.gen); |
|
|
|
|
|
|
|
} else if (isDict(encoding)) { |
|
|
|
|
|
|
|
var keys = encoding.getKeys(); |
|
|
|
|
|
|
|
for (var i = 0, ii = keys.length; i < ii; i++) { |
|
|
|
|
|
|
|
var entry = encoding.getRaw(keys[i]); |
|
|
|
|
|
|
|
if (isName(entry)) { |
|
|
|
|
|
|
|
hash.update(entry.name); |
|
|
|
|
|
|
|
} else if (isRef(entry)) { |
|
|
|
|
|
|
|
hash.update(entry.num + '_' + entry.gen); |
|
|
|
|
|
|
|
} else if (isArray(entry)) { // 'Differences' entry.
|
|
|
|
|
|
|
|
// Ideally we should check the contents of the array, but to avoid
|
|
|
|
|
|
|
|
// parsing it here and then again in |extractDataStructures|,
|
|
|
|
|
|
|
|
// we only use the array length for now (fixes bug1157493.pdf).
|
|
|
|
|
|
|
|
hash.update(entry.length.toString()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var toUnicode = dict.get('ToUnicode') || baseDict.get('ToUnicode'); |
|
|
|
var toUnicode = dict.get('ToUnicode') || baseDict.get('ToUnicode'); |
|
|
|