Skip to content
Lamina PDF
0.9.0
GitHub
Open the web app

FlowDocument

type FlowDocument = object;

Defined in: packages/sdk/src/generated/document.ts:398

A laminapdf.document/1 document.

0.2.0

author?: Text | null;

Defined in: packages/sdk/src/generated/document.ts:400

The author, in the metadata.


blocks: BlockSpec[];

Defined in: packages/sdk/src/generated/document.ts:402

The blocks, in reading order.


lang?: string | null;

Defined in: packages/sdk/src/generated/document.ts:404

The natural language, a BCP 47 tag such as en-GB.


outline?: boolean | null;

Defined in: packages/sdk/src/generated/document.ts:406

Whether headings make an outline (bookmarks); true when left out.


page?: PageSpec | null;

Defined in: packages/sdk/src/generated/document.ts:408

The pages the blocks flow through (A4 with 72-point margins when left out).


profiles?: ProfileName[];

Defined in: packages/sdk/src/generated/document.ts:414

The profiles the PDF must meet: PDF/UA-1, and at most one of PDF/A-2b, PDF/A-2u and PDF/A-3b. The caller passes them to the builder’s options, as they are checked there.


schema: string;

Defined in: packages/sdk/src/generated/document.ts:416

Always laminapdf.document/1.


sectionLevel?: number | null;

Defined in: packages/sdk/src/generated/document.ts:418

The heading level whose text {section} shows in a header or footer (1 when left out).


styles: Record<string, StyleSpec>;

Defined in: packages/sdk/src/generated/document.ts:420

The text styles, by name; body is the one text takes when it names none.


subject?: Text | null;

Defined in: packages/sdk/src/generated/document.ts:422

The subject, in the metadata.


tagged?: boolean | null;

Defined in: packages/sdk/src/generated/document.ts:424

Whether the PDF is tagged for screen readers; true when left out (PDF/UA-1 needs it).


title?: Text | null;

Defined in: packages/sdk/src/generated/document.ts:426

The title: the document’s metadata, {title} in a header or footer, and the window title.