API Reference
PdfLogicalTextBlock
Line-level text block extracted from a PDF page.
Inheritance
- Object
- PdfLogicalTextBlock
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property PdfDocumentReadResult.TextBlocks
- Property PdfLogicalHeading.Line
- 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
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public virtual Int32 PageNumber { get; } #public virtual PdfLogicalElementKind Kind { get; } #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 Int32 SpanCount { get; } #Number of text spans merged into this block.