API Reference
ConvertTo-OfficePdfSearchable
Creates a searchable PDF by adding invisible text from a discovered local OCR runtime.
Remarks
Creates a searchable PDF by adding invisible text from a discovered local OCR runtime.
Examples
Make a scanned PDF searchable.
PS>
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.
PS>
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.
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
ConvertTo-OfficePdfSearchable [-Force] [-Language <English>] [-MinimumConfidence <Double>] [-NoLanguageDownload] [-Options <TesseractOcrSessionOptions>] -OutputPath <String> [-PassThru] -Path <String> [-PdfOptions <PdfOcrMergeOptions>] [-RenderDpi <Double>] [-TessdataDirectory <String>] [-TesseractLanguageExpression <String>] [-TesseractPath <String>] [<CommonParameters>]#All Parameter SetsParameters
- Force SwitchParameter
- Overwrite an existing destination file.
- Language TesseractOcrLanguage[]
- 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
- Minimum normalized confidence accepted for searchable text.
- NoLanguageDownload SwitchParameter
- Do not download checksum-pinned curated language data when a requested language is missing.
- Options TesseractOcrSessionOptions
- Advanced OfficeIMO OCR options. Convenience parameters override matching values.
- OutputPath String
- Destination PDF path.
- PassThru SwitchParameter
- Return the complete searchable-PDF OCR result instead of the output file.
- Path String
- Source PDF path.
- PdfOptions PdfOcrMergeOptions
- Advanced PDF page selection, rendering, confidence, overlap, and resource limits.
- RenderDpi Double
- PDF page render resolution used for recognition.
- TessdataDirectory String
- Explicit directory containing Tesseract trained-data files.
- TesseractLanguageExpression String
- Advanced raw Tesseract expression for caller-installed custom trained-data models.
- TesseractPath String
- Explicit Tesseract executable path. By default OfficeIMO securely discovers an installed runtime.
Outputs
System.IO.FileInfo, OfficeIMO.Pdf.Ocr.PdfSearchableOcrResult