Function

CGPDFContentStreamCreateWithPage(_:)

Creates a content stream object from a PDF page object.

Declaration

func CGPDFContentStreamCreateWithPage(_ page: CGPDFPage) -> CGPDFContentStreamRef

Parameters

page

A PDF page object.

Return Value

A new CGPDFContentStreamRef object. You are responsible for releasing this object by calling the CGPDFContentStreamRelease(_:) function.

Discussion

A CGPDFContentStreamRef object can contain more than one PDF content stream. To retrieve an array of the PDF content streams in the object, call the function CGPDFContentStreamGetStreams(_:). To obtain the resources associated with a CGPDFContentStreamRef object, call the function CGPDFContentStreamGetResource(_:_:_:).

See Also

Creating a PDF Content Stream Object

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software