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

Discards invalid values for Blues

This commit is contained in:
Yury Delendik 2012-08-11 23:05:41 -05:00
parent 6ccf711966
commit 972d08209a
3 changed files with 13 additions and 0 deletions

View file

@ -3735,6 +3735,10 @@ var Type1Parser = function type1Parser() {
case '/OtherBlues':
case '/FamilyBlues':
case '/FamilyOtherBlues':
var blueArray = readNumberArray(eexecStr, i + 1);
if (blueArray.length > 0 && (blueArray.length % 2) == 0)
program.properties.privateData[token.substring(1)] = blueArray;
break;
case '/StemSnapH':
case '/StemSnapV':
program.properties.privateData[token.substring(1)] =