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

# TextBlock

```ts
type TextBlock = Extract<ContentObjectSpec, {
  text: unknown;
}>["text"];
```

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

Text laid out in a box, as an added text object holds it: `{ width, height, runs, align?, fonts?,
size?, color? }`. The box is `width` by `height` points, `(0, 0)` its bottom-left corner and y
up as text is set; [DocumentContent.addText](/reference/sdk/interfaces/documentcontent.md#addtext) places it so it shows where its `rect` is.

## Since

0.7.0
