# PdfLogicalTextBlock

Line-level text block extracted from a PDF page.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfLogicalTextElements.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L42)

**Implements**

`IPdfLogicalElement`

**Modifiers**

sealed

Line-level text block extracted from a PDF page.

## Inheritance

- object
- PdfLogicalTextBlock

## 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 13 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 12

- Property [PdfDocumentReadResult.TextBlocks](/api/pdf/officeimo-pdf-pdfdocumentreadresult/#property-textblocks)
- Property [PdfLogicalHeading.Line](/api/pdf/officeimo-pdf-pdflogicalheading/#property-line)
- Property [PdfLogicalHeading.Lines](/api/pdf/officeimo-pdf-pdflogicalheading/#property-lines)
- Property [PdfLogicalListItem.Line](/api/pdf/officeimo-pdf-pdflogicallistitem/#property-line)
- Property [PdfLogicalListItem.Lines](/api/pdf/officeimo-pdf-pdflogicallistitem/#property-lines)
- Property [PdfLogicalPage.Captions](/api/pdf/officeimo-pdf-pdflogicalpage/#property-captions)
- Property [PdfLogicalPage.Footers](/api/pdf/officeimo-pdf-pdflogicalpage/#property-footers)
- Property [PdfLogicalPage.Footnotes](/api/pdf/officeimo-pdf-pdflogicalpage/#property-footnotes)
- Property [PdfLogicalPage.Headers](/api/pdf/officeimo-pdf-pdflogicalpage/#property-headers)
- Property [PdfLogicalPage.TextBlocks](/api/pdf/officeimo-pdf-pdflogicalpage/#property-textblocks)
- Property [PdfLogicalParagraph.Lines](/api/pdf/officeimo-pdf-pdflogicalparagraph/#property-lines)
- Property [PdfLogicalSection.TextBlocks](/api/pdf/officeimo-pdf-pdflogicalsection/#property-textblocks)

### Accepted by parameters 1

- Method [PdfDocumentReadResult.GetOwningSection](/api/pdf/officeimo-pdf-pdfdocumentreadresult/#method-getowningsection-officeimo-pdf-pdflogicaltextblock) parameter `textBlock`

Filter members 

Show inherited

## 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 int PageNumber { get; }` [#](#property-pagenumber)

[PdfLogicalTextElements.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L42)

One-based source page number.

`public PdfLogicalElementKind Kind { get; }` [#](#property-kind)

[PdfLogicalTextElements.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L45)

Element kind.

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

[PdfLogicalTextElements.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L48)

Extracted text for the line-level block.

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

[PdfLogicalTextElements.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L51)

Leftmost X coordinate in page user-space units.

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

[PdfLogicalTextElements.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L54)

Rightmost X coordinate in page user-space units.

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

[PdfLogicalTextElements.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L57)

Baseline Y coordinate in page user-space units from the bottom of the page.

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

[PdfLogicalTextElements.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L60)

Largest font size represented by this line-level block.

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

[PdfLogicalTextElements.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L63)

Positioned text spans merged into this block, preserving font, color, and geometry details.

`public IReadOnlyList<PdfLogicalTextRun> Runs { get; }` [#](#property-runs)

[PdfLogicalTextElements.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L71)

Line text segmented into reusable semantic runs aligned with the source span styles. Whitespace synthesized by layout analysis is retained in the adjacent run.

`public PdfLogicalContentSourceKind SourceKind { get; }` [#](#property-sourcekind)

[PdfLogicalTextElements.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L79)

Whether the block came from native PDF text or an external OCR provider.

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

[PdfLogicalTextElements.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L82)

Normalized extraction or provider confidence from 0 through 1.

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

[PdfLogicalTextElements.cs:88](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L88)

Direct top-left visual geometry when the source already supplied normalized page coordinates. Native text normally derives this geometry from PDF user-space spans on demand.

`public bool IsTableContent { get; }` [#](#property-istablecontent)

[PdfLogicalTextElements.cs:91](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L91)

True when canonical table reconstruction owns these source spans. Use the table projection to avoid repeating its cells as ordinary text.

`public int SpanCount { get; }` [#](#property-spancount)

[PdfLogicalTextElements.cs:94](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L94)

Number of text spans merged into this block.

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