mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fetch parameters if they are a |Ref| in CalGray/CalRGB color spaces (issue 5747)
This commit is contained in:
parent
6bb0a483b1
commit
7c8996558a
4 changed files with 10 additions and 2 deletions
|
@ -275,10 +275,10 @@ var ColorSpace = (function ColorSpaceClosure() {
|
|||
case 'CMYK':
|
||||
return 'DeviceCmykCS';
|
||||
case 'CalGray':
|
||||
params = cs[1].getAll();
|
||||
params = xref.fetchIfRef(cs[1]).getAll();
|
||||
return ['CalGrayCS', params];
|
||||
case 'CalRGB':
|
||||
params = cs[1].getAll();
|
||||
params = xref.fetchIfRef(cs[1]).getAll();
|
||||
return ['CalRGBCS', params];
|
||||
case 'ICCBased':
|
||||
var stream = xref.fetchIfRef(cs[1]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue