Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfFormOcrReview

Namespace OfficeIMO.Pdf.Ocr
Assembly OfficeIMO.Pdf.Ocr
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

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

Returned or exposed by

Methods

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

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

Parameters

currentDocument OfficeIMO.Pdf.PdfDocument requiredposition: 0
acceptedValues System.Collections.Generic.IReadOnlyDictionary{OfficeIMO.Pdf.Ocr.PdfFormOcrProposal,OfficeIMO.Pdf.PdfFormFieldValue} requiredposition: 1
cancellationToken System.Threading.CancellationToken = default optionalposition: 2
public PdfFormFieldValueAssessment Assess(PdfFormOcrProposal proposal, PdfFormFieldValue value) #
Returns: PdfFormFieldValueAssessment

Validates a reviewed correction using the canonical field metadata assessment.

Parameters

proposal OfficeIMO.Pdf.Ocr.PdfFormOcrProposal requiredposition: 0
value OfficeIMO.Pdf.PdfFormFieldValue requiredposition: 1
public ValueTuple<Double, Double> GetPageSize(Int32 pageNumber) #
Returns: ValueTuple<Double, Double>

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

Parameters

pageNumber System.Int32 requiredposition: 0
public PdfPageRenderResult RenderPage(Int32 pageNumber, CancellationToken cancellationToken = default) #
Returns: PdfPageRenderResult

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

Parameters

pageNumber System.Int32 requiredposition: 0
cancellationToken System.Threading.CancellationToken = default optionalposition: 1

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.