1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Initial devicen colorspace support.

This commit is contained in:
Brendan Dahl 2011-11-10 08:41:36 -08:00
parent c15311c8eb
commit a12419c084

View file

@ -137,8 +137,14 @@ var ColorSpace = (function colorSpaceColorSpace() {
var alt = ColorSpace.parseToIR(cs[2], xref, res);
var tintFnIR = PDFFunction.getIR(xref, xref.fetchIfRef(cs[3]));
return ['SeparationCS', alt, tintFnIR];
case 'Lab':
case 'DeviceN':
if (cs.length > 4)
TODO('devicen color with n channels');
debugger;
var alt = ColorSpace.parseToIR(cs[2], xref, res);
var tintFnIR = PDFFunction.getIR(xref, xref.fetchIfRef(cs[3]));
return ['SeparationCS', alt, tintFnIR];
case 'Lab':
default:
error('unimplemented color space object "' + mode + '"');
}