sempdf v1.9.1Interfaces
Interface: TemplateTocOptions
sempdf / TemplateTocOptions
Defined in: src/types.ts:1968
Options for a table-of-contents block.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
font? | PdfFont | Font used for entries. Defaults to the flow font. | src/types.ts:1972 |
fontSize? | number | Entry font size in points. Defaults to 11. | src/types.ts:1974 |
indent? | number | Points of indentation added per heading level below level 1. Defaults to 16. | src/types.ts:1985 |
leader? | "none" | "dots" | "line" | Decorative leader drawn between the entry title and its page number: "dots" (default) a dotted leader, "line" a thin rule, "none" nothing. The leader is emitted as an artifact, so it is not announced by AT. | src/types.ts:1995 |
leaderColor? | ColorInput | Color of the leader dots/rule. Defaults to a light gray. | src/types.ts:1997 |
levelStyles? | object | Per-level style overrides (e.g. a larger, darker level 1). Keyed by heading level. | src/types.ts:1976 |
lineHeight? | number | Vertical space per entry in points. Defaults to fontSize * 1.6. | src/types.ts:1983 |
link? | boolean | Whether each entry links to its heading's page. Defaults to true. | src/types.ts:1987 |
maxLevel? | 1 | 2 | 6 | 5 | 4 | 3 | Deepest heading level to include (1-6). Defaults to 3. | src/types.ts:1970 |
numbering? | boolean | When true, each entry is prefixed with a hierarchical section number (e.g. "1", "1.2") tagged as a Lbl. Defaults to false. | src/types.ts:1981 |
pageNumbers? | boolean | Whether to show the resolved page number for each entry. Defaults to true. | src/types.ts:1989 |