# New-OfficeDocumentReader

Creates an immutable fully configured OfficeIMO document reader.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Outputs**

`OfficeIMO.Reader.OfficeDocumentReader`

**Source**

[NewOfficeDocumentReaderCommand.cs:24](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Reader/NewOfficeDocumentReaderCommand.cs#L24) 

Creates an immutable fully configured OfficeIMO document reader.

## Syntax

```
New-OfficeDocumentReader
[-AllStoreItems]
[-MaxConcurrentReads <Int32>]
[-MaxStoreItems <Int32>]
[-OcrLanguage <TesseractOcrLanguage[]>]
[-ProcessorFailureBehavior <Throw|ContinueWithDiagnostic|StopWithDiagnostic>]
[-TesseractDataPath <String>]
[-TesseractDpi <Int32>]
[-TesseractExecutablePath <String>]
[-TesseractLanguage <String>]
[-TesseractTimeoutSeconds <Int32>]
[-UseTesseract]
[<CommonParameters>]
```

[#](#method-new-officedocumentreader-switchparameter-int32-int32-tesseractocrlanguage-officedocumentprocessorfailurebehavior-string-int32-string-string-int32-switchparameter)

Parameter set: `All Parameter Sets`

## Examples

### Create a reader with OCR and a resilient processor policy.

```powershell
$reader = New-OfficeDocumentReader -OcrLanguage English, Polish -MaxStoreItems 5000 -ProcessorFailureBehavior ContinueWithDiagnostic
```

The returned reader can be supplied to every PSWriteOffice Reader command.

## Parameters

**-AllStoreItems SwitchParameter optional**

Project every matching item from each email store.

**-MaxConcurrentReads Int32 optional**

Maximum asynchronous reads allowed in flight.

**-MaxStoreItems Int32 optional**

Maximum PST, OST, OLM, or EMLX items projected from each store. The default is 1,000.

**-OcrLanguage TesseractOcrLanguage[] optional**

Friendly OCR languages used by the built-in Tesseract adapter.

Possible values: `English`, `Polish`, `Arabic`, `ChineseSimplified`, `ChineseTraditional`, `Czech`, `Danish`, `Dutch`, `Finnish`, `French`, `German`, `Greek`, `Hebrew`, `Hindi`, `Hungarian`, `Italian`, `Japanese`, `Korean`, `Norwegian`, `Portuguese`, `Romanian`, `Russian`, `Slovak`, `Spanish`, `Swedish`, `Turkish`, `Ukrainian`, `Vietnamese`

**-ProcessorFailureBehavior OfficeDocumentProcessorFailureBehavior optional**

Behavior when a processor fails.

Possible values: `Throw`, `ContinueWithDiagnostic`, `StopWithDiagnostic`

**-TesseractDataPath String optional**

Optional Tesseract tessdata directory.

**-TesseractDpi Int32 optional**

Optional input DPI passed to Tesseract.

**-TesseractExecutablePath String optional**

Tesseract executable path or command name.

**-TesseractLanguage String optional**

Advanced raw Tesseract expression for caller-installed custom trained-data models.

**-TesseractTimeoutSeconds Int32 optional**

Maximum Tesseract process duration in seconds. The default is 120.

**-UseTesseract SwitchParameter optional**

Enable the built-in Tesseract command-line OCR adapter with default settings.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:900B65CFF322E1270E7CE99E359EDFBCC28EDB3C37DB1C11AADE2F0EB36866C0 -->
