Skip to main content

Interface: FlowTextOptions

Options for placing paragraphs or text blocks through the flow layout API.

Extends

Extended by

Properties

PropertyTypeDescriptionInherited from
align?TextAlignHorizontal alignment for laid-out content.TextBlockOptions.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.-
bold?booleanSelects the bold variant of font. See TextOptions.bold.TextBlockOptions.bold
characterSpacing?numberAdditional spacing between characters in PDF points.TextBlockOptions.characterSpacing
color?ColorInputColor used for drawing, text, or highlighting.TextBlockOptions.color
direction?TextDirectionText direction used for shaping and layout.TextBlockOptions.direction
encoding?"winansi" | "macroman" | "pdfdoc"Built-in font encoding. When set, the font dictionary emits an /Encoding entry with the specified encoding (e.g. /WinAnsiEncoding). When undefined, the default encoding is used.TextBlockOptions.encoding
fallbackFonts?PdfFont[]Fallback fonts used when the primary font lacks a glyph.TextBlockOptions.fallbackFonts
font?PdfFontFont used to render text.TextBlockOptions.font
fontSize?numberFont size in PDF points.TextBlockOptions.fontSize
height?numberBox height in PDF points. When set together 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.TextBlockOptions.height
italic?booleanSelects the italic variant of font. See TextOptions.italic.TextBlockOptions.italic
kerning?booleanWhether kerning should be applied where supported.TextBlockOptions.kerning
lineHeight?numberLine height in PDF points.TextBlockOptions.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
maxLines?numberMaximum number of lines to render.TextBlockOptions.maxLines
strike?booleanDraws a strike-through line over the text.TextBlockOptions.strike
structure?PdfStructureOptionsAdditional structure metadata for tagged PDF output.TextBlockOptions.structure
tag?| PdfTextStructureTag | "Artifact"Structure tag used for tagged PDF output.TextBlockOptions.tag
underline?booleanDraws an underline beneath the text.TextBlockOptions.underline
verticalAlign?VerticalAlignVertical alignment of the wrapped text within height. Requires height. Defaults to "top".TextBlockOptions.verticalAlign
wordSpacing?numberAdditional spacing between words in PDF points.TextBlockOptions.wordSpacing
writingMode?"horizontal" | "vertical"Text writing mode. "horizontal" (default) places characters left-to-right. "vertical" stacks characters top-to-bottom.TextBlockOptions.writingMode