Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfUnderstandingWord

OfficeIMO.Pdf

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

One decoded word candidate with source-run traceability.

Inheritance

  • object
  • PdfUnderstandingWord

Remarks

Native page coordinates use default user-space units: one unit is /UserUnit physical points (1/72 inch each), defaulting to 1. Local text/font and matrix values retain their native coordinate spaces. Explicit visual projections use their documented coordinates.

Usage

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

Accepted by parameters 2

Constructors

public PdfUnderstandingWord(string text, double xStart, double xEnd, double baselineY, double fontSize, double rotationDegrees, IReadOnlyList<PdfTextSpan> sourceRuns, double confidence = 1, IEnumerable<PdfInferenceEvidence>? evidence = null, double? advance = null, PdfLogicalVisualBounds? visualBounds = null, int? sourceSequence = null) #

Creates a positioned word artifact for a custom grouping stage.

Parameters

text string required
xStart double required
xEnd double required
baselineY double required
fontSize double required
rotationDegrees double required
sourceRuns System.Collections.Generic.IReadOnlyList<OfficeIMO.Pdf.PdfTextSpan> required
confidence double = 1 optional
evidence System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfInferenceEvidence>? = null optional
advance double? = null optional
visualBounds OfficeIMO.Pdf.PdfLogicalVisualBounds? = null optional
sourceSequence int? = null optional

Properties

public string Text { get; } #

Decoded word text.

public double XStart { get; } #

Left bound in page user-space units.

public double XEnd { get; } #

Right bound in page user-space units.

public double BaselineY { get; } #

Baseline Y in page user-space units.

public double FontSize { get; } #

Representative font size.

public double RotationDegrees { get; } #

Baseline rotation in degrees.

public double? Advance { get; } #

Distance occupied along the baseline, including vertical and rotated baselines, when known.

public PdfLogicalVisualBounds? VisualBounds { get; } #

Direct top-left visual bounds, when supplied by a positioned source such as OCR.

public int? SourceSequence { get; } #

Original zero-based source order, when supplied by the decoder or positioned provider.

public IReadOnlyList<PdfTextSpan> SourceRuns { get; } #

Decoded source runs that produced this word.

public double Confidence { get; } #

Normalized grouping confidence from 0 to 1.

public IReadOnlyList<PdfInferenceEvidence> Evidence { get; } #

Evidence supporting this word grouping.