Contents

CGPDFDictionaryGetArray(_:_:_:)

Returns whether there is a PDF array associated with a specified key in a PDF dictionary and, if so, retrieves that array.

Declaration

func CGPDFDictionaryGetArray(_ dict: CGPDFDictionaryRef, _ key: UnsafePointer<CChar>, _ value: UnsafeMutablePointer<CGPDFArrayRef?>?) -> 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, an uninitialized pointer to a PDF array. If the value associated with the specified key is a PDF array, then on return contains that array; otherwise the value is unspecified.

Return Value

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

See Also

Getting Data from a Dictionary