diff --git a/pdf.js b/pdf.js index f5720fa41..65a40accd 100644 --- a/pdf.js +++ b/pdf.js @@ -5233,7 +5233,7 @@ var ColorSpace = (function() { constructor.parse = function colorspace_parse(cs, xref, res) { if (IsName(cs)) { var colorSpaces = res.get('ColorSpace'); - if (colorSpaces) { + if (IsDict(colorSpaces)) { var refcs = colorSpaces.get(cs.name); if (refcs) cs = refcs;