GetColorSpace(CosObject) Method

Definition

Assembly Broadside.dll

Returns the colour space a value names in the running content stream.

public PdfColorSpace GetColorSpace(CosObject colorSpace)

Parameters

colorSpace
CosObject

A name, as the operand of CS and cs (DeviceGray, DeviceRGB, DeviceCMYK and Pattern name those spaces; any other name is looked up in the ColorSpace subdictionary of Resources), or a colour space array.

Returns

PdfColorSpace
The space; DeviceGray, with a diagnostic, when the value names none.

Remarks

ISO 32000-2 §8.6.8, Table 73; §7.8.3.