CGPDFScannerCreate(_:_:_:)
Creates a PDF scanner.
Declaration
func CGPDFScannerCreate(_ cs: CGPDFContentStreamRef, _ table: CGPDFOperatorTableRef?, _ info: UnsafeMutableRawPointer?) -> CGPDFScannerRefParameters
- 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. In Objective-C, you’re 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(_:).