Skip to main content

Interface: InlineTextRun

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

PropertyTypeDescription
bold?booleanSelects the bold variant of this run's font. See TextOptions.bold.
characterSpacing?numberAdditional spacing between characters in PDF points.
color?ColorInputColor for this run.
font?PdfFontFont for this run (built-in name, embedded handle, or registered family name).
fontSize?numberFont size in PDF points for this run.
italic?booleanSelects the italic variant of this run's font. See TextOptions.italic.
kerning?booleanWhether kerning is applied for this run.
link?stringWhen set, wraps this run in a clickable URI link annotation.
strike?booleanDraws a strike-through line over this run.
textstringText content of this segment.
underline?booleanDraws an underline beneath this run.