Skip to main content

Interface: FlowOptions

Initial layout, typography, and spacing options for a PdfFlow cursor.

Extended by

Properties

PropertyTypeDescription
align?TextAlignHorizontal alignment for laid-out content.
color?ColorInputColor used for drawing, text, or highlighting.
columns?FlowColumnsOptionsNewspaper-style flow columns.
direction?TextDirectionText direction used for shaping and layout.
fallbackFonts?PdfFont[]Fallback fonts used when the primary font lacks a glyph.
font?PdfFontFont used to render text.
fontSize?numberFont size in PDF points.
gap?numberDefault vertical gap between flow blocks in PDF points.
kerning?booleanWhether kerning should be applied where supported.
lineHeight?numberLine height in PDF points.
margin?FlowMarginShorthandCSS-like margin shorthand in PDF points.
marginBottom?numberBottom margin in PDF points.
marginLeft?numberLeft margin in PDF points.
marginRight?numberRight margin in PDF points.
marginTop?numberTop margin in PDF points.
spacing?FlowSpacingScaleSemantic spacing scale used by flow layout.
width?numberWidth in PDF points.
writingMode?"horizontal" | "vertical"Text writing mode. "horizontal" (default) places characters left-to-right. "vertical" stacks characters top-to-bottom.
x?numberHorizontal position in PDF points.
y?numberVertical position in PDF points.