# ConvertTo-OfficePdfSearchable

Creates a searchable PDF by adding invisible text from a discovered local OCR runtime.

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

`System.String`

**Outputs**

`System.IO.FileInfo` `OfficeIMO.Pdf.Ocr.PdfSearchableOcrResult`

**Source**

[ConvertToOfficePdfSearchableCommand.cs:28](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Ocr/ConvertToOfficePdfSearchableCommand.cs#L28) 

Creates a searchable PDF by adding invisible text from a discovered local OCR runtime.

## Syntax

```
ConvertTo-OfficePdfSearchable
[-Force]
[-IgnorePermissionRestrictions]
[-Language <TesseractOcrLanguage[]>]
[-MinimumConfidence <Double>]
[-NoLanguageDownload]
[-Options <TesseractOcrSessionOptions>]
[-OutputPath] <String>
[-PassThru]
[-Password <String>]
[-Path] <String>
[-PdfOptions <PdfOcrMergeOptions>]
[-ReadOptions <PdfLoadOptions>]
[-RenderDpi <Double>]
[-TessdataDirectory <String>]
[-TesseractLanguageExpression <String>]
[-TesseractPath <String>]
[<CommonParameters>]
```

[#](#member-1608e2e1220aa8fa812a24ca)

Parameter set: `All Parameter Sets`

## Examples

### Make a scanned PDF searchable.

```powershell
ConvertTo-OfficePdfSearchable -Path .\Scan.pdf -OutputPath .\Scan-Searchable.pdf
```

Preserves visible page content and writes geometry-aligned invisible English text.

### Recognize an English and Polish document and inspect the OCR evidence.

```powershell
ConvertTo-OfficePdfSearchable -Path .\Scan.pdf -OutputPath .\Searchable.pdf -Language English, Polish -PassThru
```

Returns recognition, filtering, page, provider, and model evidence instead of the output file.

## Parameters

**-Force SwitchParameter optional**

Overwrite an existing destination file.

**-IgnorePermissionRestrictions SwitchParameter optional**

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

**-Language TesseractOcrLanguage[] optional**

Friendly OCR languages. Supply more than one value to recognize multilingual content.

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`

**-MinimumConfidence Double optional**

Minimum normalized confidence accepted for searchable text.

**-NoLanguageDownload SwitchParameter optional**

Do not download checksum-pinned curated language data when a requested language is missing.

**-Options TesseractOcrSessionOptions optional**

Advanced OfficeIMO OCR options. Convenience parameters override matching values.

**-OutputPath String requiredposition: 1**

Destination PDF path.

**-PassThru SwitchParameter optional**

Return the complete searchable-PDF OCR result instead of the output file.

**-Password String optional**

Password used to authenticate an encrypted PDF.

**-Path String requiredposition: 0pipeline: True (ByValue)aliases: FilePath**

Source PDF path.

**-PdfOptions PdfOcrMergeOptions optional**

Advanced PDF page selection, rendering, confidence, overlap, and resource limits.

**-ReadOptions PdfLoadOptions optional**

Optional bounded PDF parsing settings.

**-RenderDpi Double optional**

PDF page render resolution used for recognition.

**-TessdataDirectory String optional**

Explicit directory containing Tesseract trained-data files.

**-TesseractLanguageExpression String optional**

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

**-TesseractPath String optional**

Explicit Tesseract executable path. By default OfficeIMO securely discovers an installed runtime.

## 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:5E5A410BB839969F364973537B571616DA4812A57B20700CB82473FC2B37E637 -->
