Skip to content

zeropdf v1.3.0


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

PropertyTypeDescriptionDefined in
bold?booleanSelects the bold variant of this run's font. See TextOptions.bold.src/types.ts:920
characterSpacing?numberAdditional spacing between characters in PDF points.src/types.ts:934
color?ColorInputColor for this run.src/types.ts:930
font?PdfFontFont for this run (built-in name, embedded handle, or registered family name).src/types.ts:918
fontSize?numberFont size in PDF points for this run.src/types.ts:928
italic?booleanSelects the italic variant of this run's font. See TextOptions.italic.src/types.ts:922
kerning?booleanWhether kerning is applied for this run.src/types.ts:932
link?stringWhen set, wraps this run in a clickable URI link annotation.src/types.ts:936
strike?booleanDraws a strike-through line over this run.src/types.ts:926
textstringText content of this segment.src/types.ts:916
underline?booleanDraws an underline beneath this run.src/types.ts:924

Released under the ISC license.