Appearance
zeropdf / InlineTextRun
Interface: InlineTextRun
Defined in: src/types.ts:914
A single styled segment of inline rich text. Runs passed together to PdfPage.richText or PdfFlow.richParagraph flow on the same line and wrap together as one paragraph; each run carries its own style.
Any style omitted on a run inherits from the block-level options (RichTextOptions). Whitespace between words is taken from the run text verbatim — include trailing/leading spaces where you want them between adjacent runs (e.g. "Hello " then a bold "world").
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
bold? | boolean | Selects the bold variant of this run's font. See TextOptions.bold. | src/types.ts:920 |
characterSpacing? | number | Additional spacing between characters in PDF points. | src/types.ts:934 |
color? | ColorInput | Color for this run. | src/types.ts:930 |
font? | PdfFont | Font for this run (built-in name, embedded handle, or registered family name). | src/types.ts:918 |
fontSize? | number | Font size in PDF points for this run. | src/types.ts:928 |
italic? | boolean | Selects the italic variant of this run's font. See TextOptions.italic. | src/types.ts:922 |
kerning? | boolean | Whether kerning is applied for this run. | src/types.ts:932 |
link? | string | When set, wraps this run in a clickable URI link annotation. | src/types.ts:936 |
strike? | boolean | Draws a strike-through line over this run. | src/types.ts:926 |
text | string | Text content of this segment. | src/types.ts:916 |
underline? | boolean | Draws an underline beneath this run. | src/types.ts:924 |