# Invoke-OfficePdfOcrMerge

Runs an external OCR provider and merges recognized words with native PDF text.

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 **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Outputs**

`OfficeIMO.Pdf.Ocr.PdfOcrMergeResult`

**Source**

[InvokeOfficePdfOcrMergeCommand.cs:13](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Pdf/InvokeOfficePdfOcrMergeCommand.cs#L13) 

Runs an external OCR provider and merges recognized words with native PDF text.

## Syntax

```
Invoke-OfficePdfOcrMerge
[-IgnorePermissionRestrictions]
[-Options <PdfOcrMergeOptions>]
[-Password <String>]
[-Path] <String>
-Provider <IOcrEngine>
[-ReadOptions <PdfLoadOptions>]
[<CommonParameters>]
```

[#](#method-invoke-officepdfocrmerge-switchparameter-pdfocrmergeoptions-string-string-iocrengine-pdfloadoptions)

Parameter set: `All Parameter Sets`

## Examples

### Example 1

```powershell
Invoke-OfficePdfOcrMerge -Path 'C:\Path' -Provider 'Value'
```

## Parameters

**-IgnorePermissionRestrictions SwitchParameter optional**

After successful password authentication, explicitly ignore owner-imposed extraction restrictions.

**-Options PdfOcrMergeOptions optional**

Optional page selection, DPI, confidence, overlap, and limits.

**-Password String optional**

Password used to authenticate an encrypted PDF.

**-Path String requiredposition: 0**

Source PDF path.

**-Provider IOcrEngine requiredaliases: Engine**

Engine-neutral OCR implementation.

**-ReadOptions PdfLoadOptions optional**

Optional bounded PDF parsing 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:0C144A39D7BF208574097F1B9B443F2E50692921AEDDCE8537CEBD8FE5C2D5DF -->
