Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeDocumentOcrProcessor

OfficeIMO.Reader

Namespace
OfficeIMO.Reader
Assembly
OfficeIMO.Reader.Ocr
Source revision
063fe3ee9839 with working tree changes
Implements
IAsyncOfficeDocumentProcessor IOfficeDocumentProcessor
Modifiers
sealed

Runs a configured OCR engine as an ordered rich-document processor step.

Inheritance

  • object
  • OfficeDocumentOcrProcessor

Constructors

public OfficeDocumentOcrProcessor(IOcrEngine engine, OfficeDocumentOcrExecutionOptions? options = null, string id = "ocr-execution") #

Creates an OCR processor with a frozen execution configuration.

Parameters

engine OfficeIMO.Ocr.IOcrEngine required
options OfficeIMO.Reader.OfficeDocumentOcrExecutionOptions? = null optional
id string = "ocr-execution" optional

Methods

public async Task<OfficeDocumentReadResult> ProcessAsync(OfficeDocumentReadResult document, OfficeDocumentProcessorContext context) #

Processes a document asynchronously.

Parameters

document OfficeIMO.Reader.OfficeDocumentReadResult required
context OfficeIMO.Reader.OfficeDocumentProcessorContext required

Returns

Task<OfficeDocumentReadResult>

Properties

public string Id { get; } #

Stable processor identifier used in diagnostics and execution reports.