Use IsDict instead of checking the property for colorSpaces
This commit is contained in:
parent
a5d5f144bc
commit
c6e4dadf94
2
pdf.js
2
pdf.js
@ -5230,7 +5230,7 @@ var ColorSpace = (function() {
|
||||
constructor.parse = function colorspace_parse(cs, xref, res) {
|
||||
if (IsName(cs)) {
|
||||
var colorSpaces = res.get('ColorSpace');
|
||||
if (colorSpaces && colorSpaces.get) {
|
||||
if (IsDict(colorSpaces)) {
|
||||
var refcs = colorSpaces.get(cs.name);
|
||||
if (refcs)
|
||||
cs = refcs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user