CGPDFDictionaryGetStream(_:_:_:)
Returns whether there is a PDF stream associated with a specified key in a PDF dictionary and, if so, retrieves that stream.
Declaration
func CGPDFDictionaryGetStream(_ dict: CGPDFDictionaryRef, _ key: UnsafePointer<CChar>, _ value: UnsafeMutablePointer<CGPDFStreamRef?>?) -> BoolParameters
- dict:
A PDF dictionary. If this parameter is not a valid PDF dictionary, the behavior is undefined.
- key:
The key for the value to be retrieved.
- value:
On input, a pointer to a PDF stream. If the value associated with the specified key is a PDF stream, then on return contains that stream; otherwise, the value is unspecified.
Return Value
Returns true if there is a PDF stream associated with the specified key; otherwise, false.