Contents

CGPDFDictionaryGetName(_:_:_:)

Returns whether an object with a specified key in a PDF dictionary is a PDF name reference (represented as a constant C string) and, if so, retrieves that name.

Declaration

func CGPDFDictionaryGetName(_ dict: CGPDFDictionaryRef, _ key: UnsafePointer<CChar>, _ value: UnsafeMutablePointer<UnsafePointer<CChar>?>?) -> Bool

Parameters

  • dict:

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

  • key:

    The key for the value to retrieve.

  • value:

    On input, a pointer to a PDF name reference, represented as a constant C string. If the value associated with the specified key is a reference to a PDF name, then on return, the variable points to the name; otherwise, the value is undefined.

Return Value

Returns true if there is a character array associated with the specified key; otherwise, false.

See Also

Getting Data from a Dictionary