---
title: "NewText"
version: "0.9.0"
url: "https://docs.laminapdf.com/reference/sdk/interfaces/newtext/"
---

# NewText

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

What [DocumentContent.addText](/reference/sdk/interfaces/documentcontent.md#addtext) puts on a page: its ID (as [NewContentObject](/reference/sdk/interfaces/newcontentobject.md)'s),
the box `rect` in page space, `[x0, y0, x1, y1]` from the page's top-left corner, the text in
`runs` (a line feed in a run starts a paragraph), and a PDF date for the form's
`/LastModified`.

`fonts` is the font, then the fallbacks tried in order for a character it lacks: `"helvetica"`,
`"times"` or `"courier"` (every reader has them), or the ID [Document.addBlob](/reference/sdk/classes/document.md#addblob) gave a
font's bytes, which are embedded as a subset. Helvetica when absent. The text wraps at the
box's width and is clipped to it.

## Since

0.7.0

## Properties

### align?

```ts
readonly align?: TextAlign;
```

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

Left when absent.

***

### color?

```ts
readonly color?: AnnotColor;
```

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

Black when absent.

***

### fonts?

```ts
readonly fonts?: readonly string[];
```

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

***

### id

```ts
readonly id: string;
```

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

***

### modified

```ts
readonly modified: string;
```

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

A PDF date, such as `"D:20261118120000Z"`.

***

### rect

```ts
readonly rect: readonly [number, number, number, number];
```

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

***

### runs

```ts
readonly runs: readonly TextSpan[];
```

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

***

### size?

```ts
readonly size?: number;
```

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

In points, from 1 to 500; 12 when absent.

***

### tag?

```ts
readonly tag?: TagChoice;
```

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

A paragraph when absent.
