Type Alias

CGPDFDictionaryApplierFunction

Performs custom processing on a key-value pair from a PDF dictionary, using optional contextual information.

Declaration

typedef void (*CGPDFDictionaryApplierFunction)(const char *key, CGPDFObjectRef value, void *info);

Parameters

key

The current key in the dictionary.

object

The value in the dictionary associated with the key.

info

The contextual information that your provided in the info parameter in CGPDFDictionaryApplyFunction.

Discussion

CGPDFDictionaryApplierFunction defines the callback for CGPDFDictionaryApplyFunction, that enumerates all of the entries in the dictionary, calling your custom applier function once for each entry. The current key, its associated value, and the contextual information are passed to your applier function using the key, value, and info parameters respectively.