Function

CGPDFScannerCreate(_:_:_:)

Creates a PDF scanner.

Declaration

func CGPDFScannerCreate(_ cs: CGPDFContentStreamRef, _ table: CGPDFOperatorTableRef?, _ info: UnsafeMutableRawPointer?) -> CGPDFScannerRef

Parameters

cs

A PDF content stream object. (See CGPDFContentStream.)

table

A table of callbacks for the PDF operators you want to handle.

info

A pointer to data you want passed to your callback function. (See CGPDFOperatorTable.)

Return Value

A PDF scanner object. You are responsible for releasing this object by calling the function CGPDFScannerRelease(_:).

Discussion

When you want to parse the contents of the PDF stream, call the function CGPDFScannerScan(_:).

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