sempdf
sempdf v1.9.1Interfaces

Interface: InlineTextRun

sempdf v1.9.1


sempdf / InlineTextRun

Defined in: src/types.ts:1024

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:1032
characterSpacing?numberAdditional spacing between characters in PDF points.src/types.ts:1046
color?ColorInputColor for this run.src/types.ts:1042
font?PdfFontFont for this run (built-in name, embedded handle, or registered family name).src/types.ts:1030
fontSize?numberFont size in PDF points for this run.src/types.ts:1040
highlight?ColorInputBackground highlight color drawn behind this run. See TextOptions.highlight.src/types.ts:1064
horizontalScaling?numberHorizontal glyph scaling percentage for this run. See TextOptions.horizontalScaling.src/types.ts:1062
italic?booleanSelects the italic variant of this run's font. See TextOptions.italic.src/types.ts:1034
kerning?booleanWhether kerning is applied for this run.src/types.ts:1044
link?stringWhen set, wraps this run in a clickable URI link annotation.src/types.ts:1048
renderMode?TextRenderModeGlyph painting mode for this run. See TextOptions.renderMode.src/types.ts:1056
rise?numberRaises (+) or lowers (−) this run's baseline in PDF points. See TextOptions.rise.src/types.ts:1050
strike?booleanDraws a strike-through line over this run.src/types.ts:1038
strokeColor?ColorInputStroke color for stroking render modes. See TextOptions.strokeColor.src/types.ts:1058
strokeWidth?numberStroke width for stroking render modes. See TextOptions.strokeWidth.src/types.ts:1060
subscript?booleanRenders this run as subscript. See TextOptions.subscript.src/types.ts:1054
superscript?booleanRenders this run as superscript. See TextOptions.superscript.src/types.ts:1052
tag?"Span" | "Quote" | "Reference" | "BibEntry" | "Code" | "Artifact"Optional inline semantic structure tag for this run within its rich-text block.src/types.ts:1028
textstringText content of this segment.src/types.ts:1026
underline?booleanDraws an underline beneath this run.src/types.ts:1036

On this page