![]() | Color |
Get the canonical grayscale, RGB, or CMYK color space.
Depending on the PDF/A compliance and the output intent, this is either a device color space (DeviceGrayColorSpace, DeviceRgbColorSpace, DeviceCmykColorSpace), a calibrated color space (CalibratedGrayColorSpace, CalibratedRgbColorSpace), or an ICC-based color space (4-channel IccBasedColorSpace). The returned color space object is not yet used on any page, but it is associated with the given target document.public static ColorSpace CreateProcessColorSpace( Document targetDocument, ProcessColorSpaceType type )
Exception | Condition |
---|---|
IOException | Unable to read a required ICC profile or writing to the document |
ArgumentException | if the targetDocument argument has already been closed |
ArgumentException | if the targetDocument argument is read-only |
ArgumentNullException | if targetDocument is . |