# OcrProcessCommand

One direct executable invocation used by optional OCR providers.

Class 

`OfficeIMO.Ocr.Process`

**Namespace**

`OfficeIMO.Ocr.Process`

**Assembly**

`OfficeIMO.Ocr.Process`

**Source revision**

`063fe3ee9839` with working tree changes

**Source**

[OcrProcessRunner.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/OcrProcessRunner.cs#L9)

**Modifiers**

sealed

One direct executable invocation used by optional OCR providers.

## Inheritance

- object
- OcrProcessCommand

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 1

- Method [OcrProcessRunner.RunAsync](/api/ocr-process/officeimo-ocr-process-ocrprocessrunner/#method-runasync-officeimo-ocr-process-ocrprocesscommand-threading-cancellationtoken) parameter `command`

Filter members 

Show inherited

## Constructors

`public OcrProcessCommand()` [#](#constructor-ctor)

[OcrProcessRunner.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/OcrProcessRunner.cs#L9)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string FileName { get; set; }` [#](#property-filename)

[OcrProcessRunner.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/OcrProcessRunner.cs#L9)

Executable path or name resolved by the operating system.

`public IReadOnlyList<string> Arguments { get; set; }` [#](#property-arguments)

[OcrProcessRunner.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/OcrProcessRunner.cs#L12)

Argument values passed directly to the executable without invoking a shell.

`public string? WorkingDirectory { get; set; }` [#](#property-workingdirectory)

[OcrProcessRunner.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/OcrProcessRunner.cs#L15)

Optional working directory.

`public IReadOnlyDictionary<string, string> EnvironmentVariables { get; set; }` [#](#property-environmentvariables)

[OcrProcessRunner.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/OcrProcessRunner.cs#L18)

Optional environment values applied to the child process.

`public TimeSpan Timeout { get; set; }` [#](#property-timeout)

[OcrProcessRunner.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/OcrProcessRunner.cs#L21)

Maximum process duration. Defaults to two minutes.

`public int MaxStandardOutputCharacters { get; set; }` [#](#property-maxstandardoutputcharacters)

[OcrProcessRunner.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/OcrProcessRunner.cs#L24)

Maximum retained standard-output characters. The stream is drained after the bound is reached.

`public int MaxStandardErrorCharacters { get; set; }` [#](#property-maxstandarderrorcharacters)

[OcrProcessRunner.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/OcrProcessRunner.cs#L27)

Maximum retained standard-error characters. The stream is drained after the bound is reached.

<!-- PowerForge markdown artifact sha256:2B9B5AA6D87A5A6333E766C4F39CC7C063D030C694A8B66F6F9A92019FB9F159 -->
