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

View File

@ -76,6 +76,7 @@
!issue5470.pdf
!issue5501.pdf
!issue5599.pdf
!issue5747.pdf
!gradientfill.pdf
!bug903856.pdf
!bug850854.pdf

BIN
test/pdfs/issue5747.pdf Normal file

Binary file not shown.

View File

@ -1036,6 +1036,13 @@
"link": false,
"type": "eq"
},
{ "id": "issue5747",
"file": "pdfs/issue5747.pdf",
"md5": "5c36afc931dd1a3321ffa2e88952d174",
"rounds": 1,
"link": false,
"type": "eq"
},
{ "id": "bug893730",
"file": "pdfs/bug893730.pdf",
"md5": "2587379fb1b3bbff89c14f0863e78383",