1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Fetch parameters if they are |Ref|s in Pattern color spaces (issue 6081)

Fixes 6081.
This commit is contained in:
Jonas Jenwald 2015-06-04 21:28:14 +02:00
parent 6203dcd292
commit 64e1fb99fe
4 changed files with 10 additions and 2 deletions

View file

@ -260,7 +260,7 @@ var ColorSpace = (function ColorSpaceClosure() {
error('unrecognized colorspace ' + mode);
}
} else if (isArray(cs)) {
mode = cs[0].name;
mode = xref.fetchIfRef(cs[0]).name;
this.mode = mode;
var numComps, params;
@ -293,7 +293,7 @@ var ColorSpace = (function ColorSpaceClosure() {
}
break;
case 'Pattern':
var basePatternCS = cs[1];
var basePatternCS = xref.fetchIfRef(cs[1]) || null;
if (basePatternCS) {
basePatternCS = ColorSpace.parseToIR(basePatternCS, xref, res);
}