1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 14:48:08 +02:00

Handle references for color space names that are defined in a dictionary

This commit is contained in:
= 2011-09-22 13:17:28 -07:00
parent 37a980ca28
commit 8072052fb1
3 changed files with 8 additions and 1 deletions

2
pdf.js
View file

@ -5431,7 +5431,7 @@ var ColorSpace = (function colorSpaceColorSpace() {
constructor.parse = function colorspace_parse(cs, xref, res) {
if (IsName(cs)) {
var colorSpaces = res.get('ColorSpace');
var colorSpaces = xref.fetchIfRef(res.get('ColorSpace'));
if (IsDict(colorSpaces)) {
var refcs = colorSpaces.get(cs.name);
if (refcs)

View file

@ -0,0 +1 @@
https://issues.apache.org/jira/secure/attachment/12421789/survey.pdf

View file

@ -145,5 +145,11 @@
"link": true,
"rounds": 1,
"type": "load"
},
{ "id": "hudsonsurvey",
"file": "pdfs/hudsonsurvey.pdf",
"link": true,
"rounds": 1,
"type": "load"
}
]