Function

CGPDFDictionaryApplyFunction

Applies a function to each entry in a dictionary.

Declaration

void CGPDFDictionaryApplyFunction(CGPDFDictionaryRef dict, CGPDFDictionaryApplierFunction function, void *info);

Parameters

dictionary

A PDF dictionary. If this parameter is not a valid PDF dictionary, the behavior is undefined.

function

The function to apply to each entry in the dictionary.

info

A pointer to contextual information to pass to the function.

Discussion

This function enumerates all of the entries in the dictionary, calling the function once for each. The current key, its associated value, and the contextual information are passed to the function (see also CGPDFDictionaryApplierFunction).