mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
fix for colorspaces
This commit is contained in:
parent
10a31bbd38
commit
8d196a96d0
1 changed files with 5 additions and 3 deletions
8
pdf.js
8
pdf.js
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue