Fetch parameters if they are a |Ref| in CalGray/CalRGB color spaces (issue 5747)
This commit is contained in:
parent
6bb0a483b1
commit
7c8996558a
@ -275,10 +275,10 @@ var ColorSpace = (function ColorSpaceClosure() {
|
|||||||
case 'CMYK':
|
case 'CMYK':
|
||||||
return 'DeviceCmykCS';
|
return 'DeviceCmykCS';
|
||||||
case 'CalGray':
|
case 'CalGray':
|
||||||
params = cs[1].getAll();
|
params = xref.fetchIfRef(cs[1]).getAll();
|
||||||
return ['CalGrayCS', params];
|
return ['CalGrayCS', params];
|
||||||
case 'CalRGB':
|
case 'CalRGB':
|
||||||
params = cs[1].getAll();
|
params = xref.fetchIfRef(cs[1]).getAll();
|
||||||
return ['CalRGBCS', params];
|
return ['CalRGBCS', params];
|
||||||
case 'ICCBased':
|
case 'ICCBased':
|
||||||
var stream = xref.fetchIfRef(cs[1]);
|
var stream = xref.fetchIfRef(cs[1]);
|
||||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -76,6 +76,7 @@
|
|||||||
!issue5470.pdf
|
!issue5470.pdf
|
||||||
!issue5501.pdf
|
!issue5501.pdf
|
||||||
!issue5599.pdf
|
!issue5599.pdf
|
||||||
|
!issue5747.pdf
|
||||||
!gradientfill.pdf
|
!gradientfill.pdf
|
||||||
!bug903856.pdf
|
!bug903856.pdf
|
||||||
!bug850854.pdf
|
!bug850854.pdf
|
||||||
|
BIN
test/pdfs/issue5747.pdf
Normal file
BIN
test/pdfs/issue5747.pdf
Normal file
Binary file not shown.
@ -1036,6 +1036,13 @@
|
|||||||
"link": false,
|
"link": false,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{ "id": "issue5747",
|
||||||
|
"file": "pdfs/issue5747.pdf",
|
||||||
|
"md5": "5c36afc931dd1a3321ffa2e88952d174",
|
||||||
|
"rounds": 1,
|
||||||
|
"link": false,
|
||||||
|
"type": "eq"
|
||||||
|
},
|
||||||
{ "id": "bug893730",
|
{ "id": "bug893730",
|
||||||
"file": "pdfs/bug893730.pdf",
|
"file": "pdfs/bug893730.pdf",
|
||||||
"md5": "2587379fb1b3bbff89c14f0863e78383",
|
"md5": "2587379fb1b3bbff89c14f0863e78383",
|
||||||
|
Loading…
Reference in New Issue
Block a user