# PdfUnderstandingWord

One decoded word candidate with source-run traceability.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfUnderstandingContracts.cs:117](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L117)

**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.

### Returned or exposed by 3

- Method [IPdfWordGroupingStage.GroupWords](/api/pdf/officeimo-pdf-ipdfwordgroupingstage/#method-groupwords-officeimo-pdf-pdfunderstandingpagecontext-collections-generic-ireadonlylist-officeimo-pdf-pdftextspan)
- Property [PdfUnderstandingLine.Words](/api/pdf/officeimo-pdf-pdfunderstandingline/#property-words)
- Property [PdfUnderstandingPageResult.Words](/api/pdf/officeimo-pdf-pdfunderstandingpageresult/#property-words)

### Accepted by parameters 2

- Method [IPdfLineGroupingStage.GroupLines](/api/pdf/officeimo-pdf-ipdflinegroupingstage/#method-grouplines-officeimo-pdf-pdfunderstandingpagecontext-collections-generic-ireadonlylist-officeimo-pdf-pdfunderstandingword) parameter `words`
- Constructor [PdfUnderstandingLine.PdfUnderstandingLine](/api/pdf/officeimo-pdf-pdfunderstandingline/#constructor-ctor-collections-generic-ireadonlylist-officeimo-pdf-pdfunderstandingword-nullable-system-double-collections-generic-ienumerable-officeimo-pdf-pdfinferenceevidence) parameter `words`

Filter members 

Show inherited

## 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)` [#](#member-f02b956775964dd697bbe1e1)

[PdfUnderstandingContracts.cs:117](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L117)

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**

## 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?`

## Properties

`public string Text { get; }` [#](#property-text)

[PdfUnderstandingContracts.cs:122](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L122)

Decoded word text.

`public double XStart { get; }` [#](#property-xstart)

[PdfUnderstandingContracts.cs:124](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L124)

Left bound in page user-space units.

`public double XEnd { get; }` [#](#property-xend)

[PdfUnderstandingContracts.cs:126](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L126)

Right bound in page user-space units.

`public double BaselineY { get; }` [#](#property-baseliney)

[PdfUnderstandingContracts.cs:128](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L128)

Baseline Y in page user-space units.

`public double FontSize { get; }` [#](#property-fontsize)

[PdfUnderstandingContracts.cs:130](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L130)

Representative font size.

`public double RotationDegrees { get; }` [#](#property-rotationdegrees)

[PdfUnderstandingContracts.cs:132](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L132)

Baseline rotation in degrees.

`public double? Advance { get; }` [#](#property-advance)

[PdfUnderstandingContracts.cs:134](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L134)

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

`public PdfLogicalVisualBounds? VisualBounds { get; }` [#](#property-visualbounds)

[PdfUnderstandingContracts.cs:136](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L136)

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

`public int? SourceSequence { get; }` [#](#property-sourcesequence)

[PdfUnderstandingContracts.cs:138](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L138)

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

`public IReadOnlyList<PdfTextSpan> SourceRuns { get; }` [#](#property-sourceruns)

[PdfUnderstandingContracts.cs:140](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L140)

Decoded source runs that produced this word.

`public double Confidence { get; }` [#](#property-confidence)

[PdfUnderstandingContracts.cs:142](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L142)

Normalized grouping confidence from 0 to 1.

`public IReadOnlyList<PdfInferenceEvidence> Evidence { get; }` [#](#property-evidence)

[PdfUnderstandingContracts.cs:144](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L144)

Evidence supporting this word grouping.

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