PDFTextWord¶
Namespace: O2S.Components.PDF4NET.Content
Defines a word returned by a text extraction operation.
Inheritance Object → PDFTextWord
Properties¶
Text¶
Gets the result text.
Property Value
String
The text associated with the word.
TextRuns¶
Gets the text fragments.
Property Value
PDFTextRunCollection
The collection of text fragments that compose the word.
TypographicWordCorners¶
Gets the typographic coordinates of the word corners.
Property Value
PDFPoint[]
The typographic coordinates on the page of the word'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 PDFTextWord.WordCorners property considers the text baseline for the lower corners.
WordCorners¶
Gets the visual coordinates of the word corners.
Property Value
PDFPoint[]
The coordinates on the page of the word'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 PDFTextWord.TypographicWordCorners property considers the font's Descent for the lower corners.
Methods¶
ToString()¶
Converts the object to string.
Returns
String
This object as string.