From: Julian Viereck Date: Sun, 9 Oct 2011 11:24:54 +0000 (+0200) Subject: Fix ColorSpace lookup in ColorSpace.parseToIR X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=98b4c5bbfc171bbe2db7cfe131e7888e962dc086;p=pdf.js.git Fix ColorSpace lookup in ColorSpace.parseToIR --- diff --git a/pdf.js b/pdf.js index 91f53de..d5a15d0 100644 --- a/pdf.js +++ b/pdf.js @@ -6458,7 +6458,7 @@ var ColorSpace = (function colorSpaceColorSpace() { constructor.parseToIR = function colorspace_parse(cs, xref, res, parseOnly) { 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)