# PdfImageOcrExtensions

Recognizes standalone raster images through the canonical positioned-text reconstruction pipeline.

Class 

`OfficeIMO.Pdf.Ocr`

**Namespace**

`OfficeIMO.Pdf.Ocr`

**Assembly**

`OfficeIMO.Pdf.Ocr`

**Source revision**

`3b680b1b6fb1` with working tree changes

**Source**

[PdfImageOcrExtensions.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Pdf.Ocr/PdfImageOcrExtensions.cs#L22)

**Modifiers**

static

Recognizes standalone raster images through the canonical positioned-text reconstruction pipeline.

## Inheritance

- object
- PdfImageOcrExtensions

## Remarks

Recognition uses the source resolution, rather than rendering a PDF intermediate. The resulting logical document can be passed to existing Word, Excel, HTML and other format adapters. Animated and multi-page images are rejected; supply separate static sources when every frame or page is required.

Filter members 

Show inherited

## Methods

`public static async Task<PdfSearchableOcrResult> MakeSearchableAsync(PdfImageDocumentSource image, IOcrEngine engine, PdfOcrMergeOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-makesearchableasync-officeimo-pdf-pdfimagedocumentsource-officeimo-ocr-iocrengine-officeimo-pdf-ocr-pdfocrmergeoptions-threading-cancellationtoken)

Creates an in-memory searchable PDF preserving the image and adding all accepted OCR words.

Parameters

**image OfficeIMO.Pdf.PdfImageDocumentSource required**

**engine OfficeIMO.Ocr.IOcrEngine required**

**options OfficeIMO.Pdf.Ocr.PdfOcrMergeOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<PdfSearchableOcrResult>`

`public static Task<PdfSearchableOcrReview> PrepareSearchableOcrAsync(PdfImageDocumentSource image, IOcrEngine engine, PdfOcrMergeOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-preparesearchableocrasync-officeimo-pdf-pdfimagedocumentsource-officeimo-ocr-iocrengine-officeimo-pdf-ocr-pdfocrmergeoptions-threading-cancellationtoken)

[PdfImageOcrExtensions.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Pdf.Ocr/PdfImageOcrExtensions.cs#L22)

Recognizes an image and retains a private image-page snapshot for review and searchable PDF generation.

Parameters

**image OfficeIMO.Pdf.PdfImageDocumentSource required**

**engine OfficeIMO.Ocr.IOcrEngine required**

**options OfficeIMO.Pdf.Ocr.PdfOcrMergeOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<PdfSearchableOcrReview>`

`public static async Task<PdfOcrMergeResult> ReadWithOcrAsync(PdfImageDocumentSource image, IOcrEngine engine, PdfOcrMergeOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-readwithocrasync-officeimo-pdf-pdfimagedocumentsource-officeimo-ocr-iocrengine-officeimo-pdf-ocr-pdfocrmergeoptions-threading-cancellationtoken)

Recognizes a captured image and reconstructs editable text and tables without writing an output file.

Parameters

**image OfficeIMO.Pdf.PdfImageDocumentSource required**

**engine OfficeIMO.Ocr.IOcrEngine required**

**options OfficeIMO.Pdf.Ocr.PdfOcrMergeOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<PdfOcrMergeResult>`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:E889B34B6D5C5936EF66765BFBA976896CD1313338F9F63AB4778F43D0D6755F -->
