CGPDFArrayGetBoolean(_:_:_:)
Returns whether an object at a given index in a PDF array is a PDF Boolean and, if so, retrieves that Boolean.
Declaration
func CGPDFArrayGetBoolean(_ array: CGPDFArrayRef, _ index: Int, _ value: UnsafeMutablePointer<CGPDFBoolean>?) -> BoolParameters
- array:
A PDF array. If this parameter is not a valid PDF array, the behavior is undefined.
- index:
The index of the value to retrieve. If the index is outside the index space of
array(0toN-1, whereNis the count ofarray), the behavior is undefined. - value:
On input, a pointer to a PDF Boolean. If the value at the specified index is a PDF Boolean, then on return that Boolean, otherwise the value is undefined.
Return Value
Returns true if there is a PDF Boolean at the specified index, otherwise false.