PdfTextLine Class

A line of the text of a page: the glyphs that follow each other on a baseline (see PdfPage.ExtractTextLayout).

public sealed class PdfTextLine

Properties

NameDescription
BoundsGets the smallest rectangle that contains the bounds of the glyphs of the line.
GlyphsGets the glyphs of the line, in the order of the content (from left to right in the reading order of the layout), spaces included.
TextGets the text of the line, with a space where the glyphs are apart: the line of PdfPage.ExtractText.
WordsGets the words of the line, in the order of the content (from left to right in the reading order of the layout).

Gets the smallest rectangle that contains the bounds of the glyphs of the line.

public PdfRectangle Bounds { get; }

Property value

PdfRectangle

Gets the glyphs of the line, in the order of the content (from left to right in the reading order of the layout), spaces included.

public IReadOnlyList<PdfTextGlyph> Glyphs { get; }

Gets the text of the line, with a space where the glyphs are apart: the line of PdfPage.ExtractText.

public string Text { get; }

Property value

string

Gets the words of the line, in the order of the content (from left to right in the reading order of the layout).

public IReadOnlyList<PdfTextWord> Words { get; }

Methods

NameDescription
ToString()Returns a string that represents the current object.

ToString()

PdfTextLine.cs

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.