Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfLogicalTextBlock

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

Line-level text block extracted from a PDF page.

Inheritance

  • Object
  • PdfLogicalTextBlock

Usage

Explore 12 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 Int32 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 PDF points.

public Double XEnd { get; } #

Rightmost X coordinate in PDF points.

public Double BaselineY { get; } #

Baseline Y coordinate in PDF points 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 Boolean IsTableContent { get; } #

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

public Int32 SpanCount { get; } #

Number of text spans merged into this block.