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(_:).