mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Merge pull request #1979 from yurydelendik/issue-1685
Discards invalid values for Blues
This commit is contained in:
commit
c9c5ae32d9
3 changed files with 13 additions and 0 deletions
|
@ -3747,6 +3747,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)] =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue