Function

CGPDFStreamCopyData(_:_:)

Returns the data associated with a PDF stream.

Declaration

func CGPDFStreamCopyData(_ stream: CGPDFStreamRef, _ format: UnsafeMutablePointer<CGPDFDataFormat>) -> CFData?

Parameters

stream

A PDF stream.

format

On return, contains a constant that specifies the format of the data returned—CGPDFDataFormat.raw, CGPDFDataFormat.jpegEncoded, or CGPDFDataFormat.JPEG2000.

Return Value

A CFData object that contains a copy of the stream data. You are responsible for releasing this object.

See Also

Getting Data from a PDF Stream

func CGPDFStreamGetDictionary(CGPDFStreamRef) -> CGPDFDictionaryRef?

Returns the dictionary associated with a PDF stream.