PdfLogicalTextBlock
OfficeIMO.Pdf
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
- Property PdfLogicalHeading.Line
- Property PdfLogicalHeading.Lines
- Property PdfLogicalListItem.Line
- Property PdfLogicalListItem.Lines
- Property PdfLogicalPage.Captions
- Property PdfLogicalPage.Footers
- Property PdfLogicalPage.Footnotes
- Property PdfLogicalPage.Headers
- Property PdfLogicalPage.TextBlocks
- Property PdfLogicalParagraph.Lines
- Property PdfLogicalSection.TextBlocks
Accepted by parameters 1
Inherited Methods
Properties
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.