Skip to main content

Interface: FlowRichTextOptions

Options for placing a paragraph of inline rich-text runs through the flow layout API. Position and width are supplied by the flow cursor; the remaining fields mirror RichTextOptions.

Extends

Properties

PropertyTypeDescriptionInherited from
align?"left" | "center" | "right" | "justify"Horizontal alignment of each line. Defaults to "left". Ignored in vertical mode.RichTextOptions.align
blockAlign?"left" | "center" | "right"Alignment of the block inside the flow column.-
blockWidth?numberOptional width for the flow text block within the flow column.-
color?ColorInputDefault color for runs that omit one.RichTextOptions.color
direction?TextDirectionReading direction for the runs. "auto" detects from the run text. Right-to-left lays each line out from the right edge; this is line-level direction, not full mixed-direction bidirectional reordering.RichTextOptions.direction
font?PdfFontDefault font for runs that omit one.RichTextOptions.font
fontSize?numberDefault font size for runs that omit one.RichTextOptions.fontSize
height?numberBox height in PDF points. With verticalAlign, the wrapped lines are positioned within a box of this height starting at y and extending downward. Has no effect unless verticalAlign is given. Horizontal mode only.RichTextOptions.height
kerning?booleanDefault kerning behavior for runs that omit it.RichTextOptions.kerning
lineHeight?numberLine height in PDF points (column spacing in vertical mode). Defaults to 1.2 × the largest run font size.RichTextOptions.lineHeight
margin?FlowMarginShorthandCSS-like margin shorthand in PDF points.FlowBlockSpacingOptions.margin
marginBottom?numberBottom margin in PDF points.FlowBlockSpacingOptions.marginBottom
marginLeft?numberLeft margin in PDF points.FlowBlockSpacingOptions.marginLeft
marginRight?numberRight margin in PDF points.FlowBlockSpacingOptions.marginRight
marginTop?numberTop margin in PDF points.FlowBlockSpacingOptions.marginTop
structure?PdfStructureOptionsAdditional structure metadata for tagged PDF output.RichTextOptions.structure
tag?| PdfTextStructureTag | "Artifact"Structure tag used for tagged PDF output. Defaults to "P".RichTextOptions.tag
verticalAlign?VerticalAlignVertical alignment of the wrapped runs within height. Requires height. Defaults to "top". Horizontal mode only.RichTextOptions.verticalAlign
writingMode?"horizontal" | "vertical"Writing mode. "horizontal" (default) flows runs left-to-right and wraps onto new lines. "vertical" stacks the runs top-to-bottom in one column.RichTextOptions.writingMode