Skip to content
Lamina PDF
0.9.0
GitHub
Open the web app

NewHeaderFooter

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

What DocumentContent.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; the text is one line to a slot, clipped to the page between its margins.

0.7.0

readonly color?: AnnotColor;

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

Black when absent.


readonly date?: string;

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

What {date} stands for; empty when absent.


readonly file?: string;

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

What {file} stands for; empty when absent.


readonly fonts?: readonly string[];

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


readonly id: string;

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


readonly margins?: MarkMargins;

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


readonly modified: string;

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

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


readonly size?: number;

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

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


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

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