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 a |Ref| in CalGray/CalRGB color spaces (issue 5747)

This commit is contained in:
Jonas Jenwald 2015-02-20 11:19:21 +01:00
parent 6bb0a483b1
commit 7c8996558a
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]);