Merge pull request #163 from sbarman/master

fixes bug for certain colorspaces
This commit is contained in:
Andreas Gal 2011-07-02 23:37:11 -07:00
commit 5a99a9d143

8
pdf.js
View File

@ -4380,9 +4380,11 @@ var ColorSpace = (function() {
constructor.parse = function colorspace_parse(cs, xref, res) {
if (IsName(cs)) {
var colorSpaces = res.get("ColorSpace");
var refcs = colorSpaces.get(cs.name);
if (refcs)
cs = refcs;
if (colorSpaces) {
var refcs = colorSpaces.get(cs.name);
if (refcs)
cs = refcs;
}
}
cs = xref.fetchIfRef(cs);