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:
parent
6203dcd292
commit
64e1fb99fe
4 changed files with 10 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue