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

Merge pull request #5748 from Snuffleupagus/issue-5747

Fetch parameters if they are a |Ref| in CalGray/CalRGB color spaces (issue 5747)
This commit is contained in:
Yury Delendik 2015-02-26 17:44:46 -06:00
commit 23916b2b14
4 changed files with 10 additions and 2 deletions

View file

@ -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]);