---
title: "TextBox"
version: "0.9.0"
url: "https://docs.laminapdf.com/reference/sdk/type-aliases/textbox/"
---

# TextBox

```ts
type TextBox = TextBoxJs;
```

Defined in: [packages/sdk/src/types.ts:488](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/types.ts#L488)

A text box read back by [Document.textBox](/reference/sdk/classes/document.md#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.

## Since

0.7.0
