API referenceCore SDK

pdfGetDeviceNAttributes

Read a DeviceN color space's /Attributes dict (process-

C
BOOL32 __stdcall pdfGetDeviceNAttributes(void* IAttributes, TDeviceNAttributes* Attributes);
Delphi
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.

ParameterDescription
IAttributesA DeviceN-attributes object handle from pdfGetColorSpaceObj.
AttributesOutput: ProcessColorantsCount (filled); IProcessColorSpace (always nil).

Return value. True if IAttributes resolves; False otherwise.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Core SDK
Category

Getters

Exported names

pdfGetDeviceNAttributes

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.