Skip to content
Lamina PDF
0.9.0
GitHub
Open the web app

TextBox

type TextBox = TextBoxJs;

Defined in: packages/sdk/src/types.ts:488

A text box read back by Document.textBox. page is its page, 0-based. rect is the box its text is laid out in, [x0, y0, x1, y1] in page space. line is a callout’s line, as [x, y] points in page space from the point it points at to the box. spec is the box in user space, which a freeText patch changes. color is the text’s colour; left out means black. simplified is true when reading dropped styles Lamina PDF doesn’t keep; changing the box writes it again without them.

0.7.0