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

# NewHeaderFooter

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

What [DocumentContent.setHeaderFooter](/reference/sdk/interfaces/documentcontent.md#setheaderfooter) puts on pages: the mark's ID, the text of its six
`slots` (top left, centre, right, then bottom left, centre, right; `null` leaves one empty), and
a PDF date for the forms' `/LastModified`.

A slot's text may hold the fields `{page}` and `{pages}` (the page's number and the document's
page count), `{label}` (the page's label, else its number), and `{date}` and `{file}`, which
stand for the `date` and `file` given here; `{{` and `}}` are braces. They are filled when the
edit is applied, so a page moved later keeps its number. `fonts` is the font, then its
fallbacks, as for [NewText](/reference/sdk/interfaces/newtext.md); the text is one line to a slot, clipped to the page between
its margins.

## Since

0.7.0

## Properties

### color?

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

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

Black when absent.

***

### date?

```ts
readonly date?: string;
```

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

What `{date}` stands for; empty when absent.

***

### file?

```ts
readonly file?: string;
```

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

What `{file}` stands for; empty when absent.

***

### fonts?

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

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

***

### id

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

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

***

### margins?

```ts
readonly margins?: MarkMargins;
```

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

***

### modified

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

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

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

***

### size?

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

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

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

***

### slots

```ts
readonly slots: readonly [string | null, string | null, string | null, string | null, string | null, string | null];
```

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