GSKScanFlowOCROutputFormats
Objective-C
enum GSKScanFlowOCROutputFormats : NSUInteger {}
Swift
struct GSKScanFlowOCROutputFormats : OptionSet, @unchecked Sendable
The various formats into which the OCR result can be made available.
This is an option set so you can combine multiple formats.
-
No output formats
Declaration
Objective-C
GSKScanFlowOCROutputFormatsNone = 0
-
Output OCR result as raw text
Declaration
Objective-C
GSKScanFlowOCROutputFormatsRawText = 1 << 0
Swift
static var rawText: GSKScanFlowOCROutputFormats { get }
-
Output OCR result in HOCR format
Declaration
Objective-C
GSKScanFlowOCROutputFormatsHOCR = 1 << 1
Swift
static var HOCR: GSKScanFlowOCROutputFormats { get }
-
Add OCR result as a text layer in the generated PDF file (if any)
Declaration
Objective-C
GSKScanFlowOCROutputFormatsTextLayerInPDF = 1 << 2
Swift
static var textLayerInPDF: GSKScanFlowOCROutputFormats { get }
-
All the output formats
Declaration
Objective-C
GSKScanFlowOCROutputFormatsAll = (9223372036854775807L * 2UL + 1UL)
Swift
static var all: GSKScanFlowOCROutputFormats { get }