Interface: TextFragment
Represents a text fragment within a document, containing information about its position, content, and layout.
Properties
glyphOffsets
glyphOffsets:
number
[]
An array of glyph offsets representing the offset of each character within the text fragment. Glyph offsets are used for precise positioning and layout purposes.
pageNumber
pageNumber:
number
The page number where the text fragment is located within the document.
quadrilateral
quadrilateral:
Quadrilateral
A quadrilateral representing the bounding box or area occupied by the text fragment. This quadrilateral defines the spatial extent of the text fragment on the page.
text
text:
string
The actual textual content of the text fragment.