GSKTextLayout

Objective-C

@interface GSKTextLayout : NSObject

Swift

class GSKTextLayout : NSObject

The text layout of a scan

This is part of the output of the OCR recognition, but can also be part of the input of the PDF generation.

  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithHocr:(nullable NSString *)hocr;

    Swift

    init(hocr: String?)
  • Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)textLayoutWithHocr:(nullable NSString *)hocr;
  • XML string containing information about text, style and layout of the image that was processed.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *hocr;

    Swift

    var hocr: String? { get }