API Reference

Cmdlet

New-OfficeDocumentReader

Namespace PSWriteOffice
Inputs
None
Outputs
OfficeIMO.Reader.OfficeDocumentReader

Creates an immutable fully configured OfficeIMO document reader.

Remarks

Creates an immutable fully configured OfficeIMO document reader.

Examples

Authored help example

Create a reader with OCR and a resilient processor policy.

PS>


$reader = New-OfficeDocumentReader -TesseractLanguage 'eng+pol' -MaxStoreItems 5000 -ProcessorFailureBehavior ContinueWithDiagnostic
        

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

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.

Syntax

New-OfficeDocumentReader [-AllStoreItems] [-MaxConcurrentReads <Int32>] [-MaxStoreItems <Int32>] [-ProcessorFailureBehavior <Throw|ContinueWithDiagnostic|StopWithDiagnostic>] [-TesseractDataPath <String>] [-TesseractDpi <Int32>] [-TesseractExecutablePath <String>] [-TesseractLanguage <String>] [-TesseractTimeoutSeconds <Int32>] [-UseTesseract] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

AllStoreItems SwitchParameter optionalposition: namedpipeline: False
Project every matching item from each email store.
MaxConcurrentReads Int32 optionalposition: namedpipeline: False
Maximum asynchronous reads allowed in flight.
MaxStoreItems Int32 optionalposition: namedpipeline: False
Maximum PST, OST, OLM, or EMLX items projected from each store. The default is 1,000.
ProcessorFailureBehavior OfficeDocumentProcessorFailureBehavior optionalposition: namedpipeline: Falsevalues: 3
Behavior when a processor fails.
Possible values: Throw, ContinueWithDiagnostic, StopWithDiagnostic
TesseractDataPath String optionalposition: namedpipeline: False
Optional Tesseract tessdata directory.
TesseractDpi Int32 optionalposition: namedpipeline: False
Optional input DPI passed to Tesseract.
TesseractExecutablePath String optionalposition: namedpipeline: False
Tesseract executable path or command name.
TesseractLanguage String optionalposition: namedpipeline: False
Tesseract language expression such as eng or eng+pol.
TesseractTimeoutSeconds Int32 optionalposition: namedpipeline: False
Maximum Tesseract process duration in seconds. The default is 120.
UseTesseract SwitchParameter optionalposition: namedpipeline: False
Enable the built-in Tesseract command-line OCR adapter with default settings.

Outputs

OfficeIMO.Reader.OfficeDocumentReader