Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfFormOcrReview

OfficeIMO.Pdf.Ocr

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

Immutable recognition proposals bound to exact source bytes, requiring explicitly reviewed values.

Inheritance

  • object
  • PdfFormOcrReview

Remarks

Applying produces an in-memory document. Publication and host revision checks remain the caller's responsibility.

Usage

Explore 1 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.

Returned or exposed by 1

Methods

public PdfDocument Apply(PdfDocument currentDocument, IReadOnlyDictionary<PdfFormOcrProposal, PdfFormFieldValue> acceptedValues, CancellationToken cancellationToken = default) #

Creates one atomic form-fill result from explicitly accepted and optionally corrected proposals.

Parameters

currentDocument OfficeIMO.Pdf.PdfDocument required
acceptedValues System.Collections.Generic.IReadOnlyDictionary<OfficeIMO.Pdf.Ocr.PdfFormOcrProposal, OfficeIMO.Pdf.PdfFormFieldValue> required
cancellationToken System.Threading.CancellationToken = default optional

Returns

PdfDocument
public PdfFormFieldValueAssessment Assess(PdfFormOcrProposal proposal, PdfFormFieldValue value) #

Validates a reviewed correction using the canonical field metadata assessment.

Parameters

proposal OfficeIMO.Pdf.Ocr.PdfFormOcrProposal required
value OfficeIMO.Pdf.PdfFormFieldValue required

Returns

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

Returns the captured visual page dimensions used by widget and word evidence.

Parameters

pageNumber int required

Returns

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

Renders a captured source page for reviewing the value and its original geometry.

Parameters

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

Returns

PdfPageRenderResult

Properties

public string SourceFingerprint { get; } #

SHA-256 identity of the immutable source snapshot.

public PdfOcrMergeResult Ocr { get; } #

Canonical OCR evidence, diagnostics and geometry.

public IReadOnlyList<PdfFormOcrProposal> Proposals { get; } #

Proposals for existing fields, with no initial acceptance.