Browse Source

fix for colorspaces

sbarman 14 years ago
parent
commit
8d196a96d0
  1. 8
      pdf.js

8
pdf.js

@ -4380,9 +4380,11 @@ 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");
var refcs = colorSpaces.get(cs.name); if (colorSpaces) {
if (refcs) var refcs = colorSpaces.get(cs.name);
cs = refcs; if (refcs)
cs = refcs;
}
} }
cs = xref.fetchIfRef(cs); cs = xref.fetchIfRef(cs);

Loading…
Cancel
Save