Skip to content

PDFTextLine

Namespace: O2S.Components.PDF4NET.Content

Defines a line of text returned by a text extraction operation.

public class PDFTextLine

Inheritance ObjectPDFTextLine

Properties

LineCorners

Gets the visual coordinates of the line corners.

public PDFPoint[] LineCorners { get; }

Property Value

PDFPoint[]
The coordinates on the page of the line's corners.

Remarks

The order of the corners in the array is the following: lower left, lower right, upper right, upper left. These corners match the text baseline for the lower corners. The PDFTextLine.TypographicLineCorners property considers the font's Descent for the lower corners.


Text

Gets the text.

public string Text { get; }

Property Value

String
The text associated with the line.


TextRuns

Gets the text fragments.

public PDFTextRunCollection TextRuns { get; internal set; }

Property Value

PDFTextRunCollection
The collection of text fragments that compose the line.


TypographicLineCorners

Gets the typographic coordinates of the line corners.

public PDFPoint[] TypographicLineCorners { get; }

Property Value

PDFPoint[]
The typographic coordinates on the page of the line's corners.

Remarks

The order of the corners in the array is the following: lower left, lower right, upper right, upper left. The typographic corners consider the font's Descent for the lower corners. The PDFTextLine.LineCorners property considers the text baseline for the lower corners.


Methods

ToString()

Converts the object to string.

public string ToString()

Returns

String
This object as string.