Fix a little error with colorspace (#373)
This commit is contained in:
parent
93437352d0
commit
a5d5f144bc
2
pdf.js
2
pdf.js
@ -5230,7 +5230,7 @@ var ColorSpace = (function() {
|
|||||||
constructor.parse = function colorspace_parse(cs, xref, res) {
|
constructor.parse = function colorspace_parse(cs, xref, res) {
|
||||||
if (IsName(cs)) {
|
if (IsName(cs)) {
|
||||||
var colorSpaces = res.get('ColorSpace');
|
var colorSpaces = res.get('ColorSpace');
|
||||||
if (colorSpaces) {
|
if (colorSpaces && colorSpaces.get) {
|
||||||
var refcs = colorSpaces.get(cs.name);
|
var refcs = colorSpaces.get(cs.name);
|
||||||
if (refcs)
|
if (refcs)
|
||||||
cs = refcs;
|
cs = refcs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user