[]
DsPdfJS API / TextLine
TextLine =
object
Represents a single line of text in a Layout object.
baselineOffset:
number
The offset from line position to the Roman baseline, in graphic units.
firstLineInParagraph:
boolean
Indicates whether the line is the first in the paragraph.
glyphRuns:
GlyphRun[]
The array of glyph runs in the text line.
height:
number
The height of the line, in graphic units.
indent:
number
The indent of the text line, in graphic units.
lastLineInParagraph:
boolean
Indicates whether the line is the last in the paragraph.
lineGap:
number
The additional spacing before the text line, in graphic units.
position:
number
The position of the text line along the flow direction (the Y coordinate of the line top for horizontal text), in graphic units.
spacing:
number
The additional spacing after the text line, in graphic units.
trailingWhitespaceLength:
number
The length (width or height) of the trailing whitespace, in graphic units.
trimmed:
boolean
Indicates whether the current line is trimmed.
optionalverticalBaselineOffset:number
The offset from the Roman baseline to Ideographic centered baseline, in graphic units. This property exists only for vertical flow direction.
width:
number
The width of the line, in graphic units.