Merge pull request #163 from sbarman/master
fixes bug for certain colorspaces
This commit is contained in:
commit
5a99a9d143
2
pdf.js
2
pdf.js
@ -4380,10 +4380,12 @@ 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) {
|
||||||
var refcs = colorSpaces.get(cs.name);
|
var refcs = colorSpaces.get(cs.name);
|
||||||
if (refcs)
|
if (refcs)
|
||||||
cs = refcs;
|
cs = refcs;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
cs = xref.fetchIfRef(cs);
|
cs = xref.fetchIfRef(cs);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user