Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfSearchableOcrReview

OfficeIMO.Pdf.Ocr

Namespace
OfficeIMO.Pdf.Ocr
Assembly
OfficeIMO.Pdf.Ocr
Source revision
e163ccb36643 with working tree changes
Modifiers
sealed

Recognition evidence and a private source snapshot for reviewing a searchable layer before mutation.

Inheritance

  • object
  • PdfSearchableOcrReview

Remarks

Selections may exclude eligible words. Rejected words cannot bypass confidence or native-text overlap policy; change recognition options and prepare another review when those policies need to change.

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Methods

public PdfSearchableOcrResult Apply(IEnumerable<PdfRecognizedWord> selectedWords, CancellationToken cancellationToken = default) #

Creates a searchable artifact using only the selected eligible word instances from this review.

Parameters

selectedWords System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.Ocr.PdfRecognizedWord> required
cancellationToken System.Threading.CancellationToken = default optional
public PdfSearchableOcrResult ApplyAll(CancellationToken cancellationToken = default) #

Creates a searchable artifact using all words accepted by the canonical merge policy.

Parameters

cancellationToken System.Threading.CancellationToken = default optional
public PdfSearchableOcrResult ApplyCorrections(IReadOnlyDictionary<PdfRecognizedWord, string> selectedWords, CancellationToken cancellationToken = default) #

Creates a searchable artifact from eligible words and their reviewed replacement text.

Parameters

selectedWords System.Collections.Generic.IReadOnlyDictionary<OfficeIMO.Pdf.Ocr.PdfRecognizedWord, string> required
cancellationToken System.Threading.CancellationToken = default optional
ExtractText 2 overloads
public string ExtractText(IEnumerable<PdfRecognizedWord> selectedWords, CancellationToken cancellationToken = default) #

Returns selected eligible words in logical reading order without creating or modifying a PDF.

Parameters

selectedWords System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.Ocr.PdfRecognizedWord> required
cancellationToken System.Threading.CancellationToken = default optional

Returns

string
public string ExtractText(IReadOnlyDictionary<PdfRecognizedWord, string> selectedWords, CancellationToken cancellationToken = default) #

Returns reviewed replacement text in logical reading order without modifying the PDF.

Parameters

selectedWords System.Collections.Generic.IReadOnlyDictionary<OfficeIMO.Pdf.Ocr.PdfRecognizedWord, string> required
cancellationToken System.Threading.CancellationToken = default optional

Returns

string
public ValueTuple<double, double> GetPageSize(int pageNumber) #

Returns the reviewed page size in the same visual points used by word geometry.

Parameters

pageNumber int required

Returns

ValueTuple<double, double>
public PdfPageRenderResult RenderPage(int pageNumber, CancellationToken cancellationToken = default) #

Renders one reviewed page from the captured source, using the recognition pixel budget.

Parameters

pageNumber int required
cancellationToken System.Threading.CancellationToken = default optional

Returns

PdfPageRenderResult

Properties

public PdfOcrMergeResult Ocr { get; } #

Provider evidence and canonical merge decisions for the captured source.