PageTextRun
A run: glyphs of one font, size, direction and marked content on one baseline, in logical order.
Accessors
Section titled “Accessors”actualText
Section titled “actualText”Get Signature
Section titled “Get Signature”get actualText():
boolean
The text comes from an /ActualText span.
Returns
Section titled “Returns”boolean
bounds
Section titled “bounds”Get Signature
Section titled “Get Signature”get bounds():
object
The bounds of its glyph quads in page space: { x, y, width, height }.
Returns
Section titled “Returns”object
height
Section titled “height”
readonlyheight:number
readonlywidth:number
readonlyx:number
readonlyy:number
Get Signature
Section titled “Get Signature”get font():
string
The font’s /BaseFont (document text).
Returns
Section titled “Returns”string
glyphRange
Section titled “glyphRange”Get Signature
Section titled “Get Signature”get glyphRange(): readonly [
number,number]
The [start, end) range of its glyphs in the page’s glyph arrays (PageText.buffers).
Returns
Section titled “Returns”readonly [number, number]
invisible
Section titled “invisible”Get Signature
Section titled “Get Signature”get invisible():
boolean
Drawn invisibly (Tr 3 or 7: an OCR layer, hidden text).
Returns
Section titled “Returns”boolean
Get Signature
Section titled “Get Signature”get mcid():
number|undefined
The marked-content ID the run is in, if any (structure tree links).
Returns
Section titled “Returns”number | undefined
Get Signature
Section titled “Get Signature”get size():
number
Font size, the text matrix applied.
Returns
Section titled “Returns”number
Get Signature
Section titled “Get Signature”get text():
string
The run’s text in logical order (document text).
Returns
Section titled “Returns”string
vertical
Section titled “vertical”Get Signature
Section titled “Get Signature”get vertical():
boolean
Vertical writing.
Returns
Section titled “Returns”boolean
Methods
Section titled “Methods”glyphs()
Section titled “glyphs()”glyphs():
TextGlyph[]
Its glyphs, with their quads (built on each call).