Function

CGPDFContentStreamGetResource(_:_:_:)

Gets the specified resource from a PDF content stream object.

Declaration

func CGPDFContentStreamGetResource(_ cs: CGPDFContentStreamRef, _ category: UnsafePointer<Int8>, _ name: UnsafePointer<Int8>) -> CGPDFObjectRef?

Parameters

cs

A PDF content stream object.

category

A string that specifies the category of the resource you want to obtain.

name

A string that specifies the name of the resource you want to obtain.

Return Value

The resource dictionary.

Discussion

You can use this function to obtain resources used by the content stream, such as forms, patterns, color spaces, and fonts.

See Also

Getting Data from a PDF Content Stream Object

func CGPDFContentStreamGetStreams(CGPDFContentStreamRef) -> CFArray?

Gets the array of PDF content streams contained in a PDF content stream object.