CGPDFScannerScan(_:)
Parses the content stream of a PDF scanner object.
Declaration
func CGPDFScannerScan(_ scanner: CGPDFScannerRef) -> BoolParameters
- scanner:
The scanner object whose content stream you want to parse.
Return Value
true if the entire stream is parsed successfully; false if parsing fails (for example, if the stream data is corrupted).
Discussion
The function CGPDFScannerScan(_:) parses the PDF content stream associated with the scanner. Each time Core Graphics parses a PDF operator for which you register a callback, Core Graphics invokes your callback.