Support for DeviceN color spaces

pdfChip CSS rule "-cchip-devicen"

The new pdfChip CSS rule "-cchip-devicen" makes it possible to define DeviceN color spaces.

The "-cchip-devicen" rule consists of two main parts:

  • define the name by which the DeviceN colorspace is known inside the CSS styles:
    -cchip-devicen-name: "test-colorspace-name";
  • define the components for the DeviceN colorspace, using a Separation colorspace definition for each such component:
    -cchip-cmyk('Pink', 0.0, 1.0, 0.0, 0.0)

Any alternate space – such as DeviceCMYK, ICC based RGB or Lab, etc.  may be used, but it is recommended to use the same alternate space for all components in a given DeviceN colorspace, as otherwise the DeviceN colorspace appearance on devices that do not support all of its colorants, its presentation may only be a rough approximation.

In order to use such a pdfChip DeviceN colorspace definition, the property -cchip-devicen is used, with a reference to the DeviceN colorspace name, and the necessary tint values for each of its components:

  • color: -cchip-devicen('tritone-devicen', 1.0, 0.2, 0.6);

The code below shows a complete example:

@-cchip-devicen{
	-cchip-devicen-name: 'six-colorant-space';
	-cchip-components:
		-cchip-cmyk('Cyan', 1.0, 0.0, 0.0, 0.0)
		-cchip-cmyk('Pink', 0.0, 1.0, 0.0, 0.0)
		-cchip-cmyk('Yellow', 0.0 ,0.0 ,1.0 ,0.0)
		-cchip-cmyk('Anthracite', 0.0, 0.0, 0.0, 1,0)
		-cchip-cmyk('Orange', 0.5, 0.5, 0.5, 0.0)
		-cchip-cmyk('Green', 0.0, 0.5, 0.5, 0.2);
}

.six-color {
    color: -cchip-devicen('six-colorant-space', 1.0, 0.2, 0.1, 0.0, 0.28, 0.02);  
}
Click to copy