pdfGetDeviceNAttributes
Read a DeviceN color space's /Attributes dict (process-
BOOL32 __stdcall pdfGetDeviceNAttributes(void* IAttributes, TDeviceNAttributes* Attributes);
function pdfGetDeviceNAttributes(IAttributes: Pointer; var Attributes: TDeviceNAttributes): LongBool; stdcall;
Purpose. Read a DeviceN color space's /Attributes dict (process- colorant count and, per the struct shape, a process-color-space sub-reference) through the object-descriptor handle minted by pdfGetColorSpaceObj/Ex (Colors and Color Spaces, odDevNAttr).
Description. Attributes.IProcessColorSpace is always left nil — only ProcessColorantsCount is genuinely filled from GetDeviceNAttrH; the process-color-space sub-object handle the struct shape implies (for reading the /Process /ColorSpace entry) is never minted, so a caller cannot drill further into the process color space through this call.
Parameters.
| Parameter | Description |
|---|---|
IAttributes | A DeviceN-attributes object handle from pdfGetColorSpaceObj. |
Attributes | Output: ProcessColorantsCount (filled); IProcessColorSpace (always nil). |
Return value. True if IAttributes resolves; False otherwise.
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Getters
pdfGetDeviceNAttributes
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.