From a12419c08469f71e910db864a55a904ea9fff473 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Thu, 10 Nov 2011 08:41:36 -0800 Subject: [PATCH] Initial devicen colorspace support. --- src/colorspace.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/colorspace.js b/src/colorspace.js index 946a1bdf4..a75b66f0c 100644 --- a/src/colorspace.js +++ b/src/colorspace.js @@ -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 + '"'); }