Cmdlet
ConvertTo-OfficePdfSearchable
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>]#Parameter set:
All Parameter SetsExamples
Make a scanned PDF searchable.
ConvertTo-OfficePdfSearchable -Path .\Scan.pdf -OutputPath .\Scan-Searchable.pdfPreserves visible page content and writes geometry-aligned invisible English text.
Recognize an English and Polish document and inspect the OCR evidence.
ConvertTo-OfficePdfSearchable -Path .\Scan.pdf -OutputPath .\Searchable.pdf -Language English, Polish -PassThruReturns recognition, filtering, page, provider, and model evidence instead of the output file.
Parameters
- -Force SwitchParameter
- Overwrite an existing destination file.
- -IgnorePermissionRestrictions SwitchParameter
- After successful password authentication, explicitly ignore owner-imposed extraction restrictions.
- -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.
- -Password String
- Password used to authenticate an encrypted PDF.
- -Path String
- Source PDF path.
- -PdfOptions PdfOcrMergeOptions
- Advanced PDF page selection, rendering, confidence, overlap, and resource limits.
- -ReadOptions PdfLoadOptions
- Optional bounded PDF parsing settings.
- -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.
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.