Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfLogicalTextBlock

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 with working tree changes
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.

Accepted by parameters 1

Properties

public int PageNumber { get; } #

One-based source page number.

public PdfLogicalElementKind Kind { get; } #

Element kind.

public string Text { get; } #

Extracted text for the line-level block.

public double XStart { get; } #

Leftmost X coordinate in page user-space units.

public double XEnd { get; } #

Rightmost X coordinate in page user-space units.

public double BaselineY { get; } #

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

public double FontSize { get; } #

Largest font size represented by this line-level block.

public IReadOnlyList<PdfTextSpan> Spans { get; } #

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

public IReadOnlyList<PdfLogicalTextRun> Runs { get; } #

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; } #

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

public double Confidence { get; } #

Normalized extraction or provider confidence from 0 through 1.

public PdfLogicalVisualBounds? VisualBounds { get; } #

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; } #

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; } #

Number of text spans merged into this block.