]> git.parisson.com Git - pdf.js.git/commitdiff
Initial devicen colorspace support.
authorBrendan Dahl <brendan.dahl@gmail.com>
Thu, 10 Nov 2011 16:41:36 +0000 (08:41 -0800)
committerBrendan Dahl <brendan.dahl@gmail.com>
Thu, 10 Nov 2011 16:41:36 +0000 (08:41 -0800)
src/colorspace.js

index 946a1bdf43a125644baba858f93488d13ee744dc..a75b66f0cd6a7dc9b797162177e77b2ad7715270 100644 (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 + '"');
       }