multivalent.std.adaptor.pdf

Class ColorSpaces

public class ColorSpaces extends Object

Returns Java color space that matches PDF specification. Used by ordinary drawing (cs, CS) and images (/ColorSpace).

PDF DeviceRGB and DeviceGray are mapped into equivalent CIE-based via ColorSpace#getInstance(int). CalRGB and CalGray are mapped likewise. DeviceCMYK is mapped to ColorSpaceCMYK. Lab is mapped to ColorSpaceLab. Separation is mapped to ColorSpaceSeparation. DeviceN is mapped to Separation. Pattern returns its alternative color space. Indexed color space returns base color space for further processing by images. Embedded ICC Profile data is supported via ICC_Profile#getInstance(InputStream).

Version: $Revision: 1.7 $ $Date: 2004/01/27 21:16:10 $

Method Summary
static ColorSpacecreateColorSpace(Object csref, PDFReader pdfr)
Interpret PDF color space represented by csref and return a java.awt.color.ColorSpace that implements it.

Method Detail

createColorSpace

public static ColorSpace createColorSpace(Object csref, PDFReader pdfr)
Interpret PDF color space represented by csref and return a java.awt.color.ColorSpace that implements it.

Parameters: csref IRef or Dict