Interface: FlowOptions
Initial layout, typography, and spacing options for a PdfFlow cursor.
Extended by
Properties
| Property | Type | Description |
|---|---|---|
align? | TextAlign | Horizontal alignment for laid-out content. |
color? | ColorInput | Color used for drawing, text, or highlighting. |
columns? | FlowColumnsOptions | Newspaper-style flow columns. |
direction? | TextDirection | Text direction used for shaping and layout. |
fallbackFonts? | PdfFont[] | Fallback fonts used when the primary font lacks a glyph. |
font? | PdfFont | Font used to render text. |
fontSize? | number | Font size in PDF points. |
gap? | number | Default vertical gap between flow blocks in PDF points. |
kerning? | boolean | Whether kerning should be applied where supported. |
lineHeight? | number | Line height in PDF points. |
margin? | FlowMarginShorthand | CSS-like margin shorthand in PDF points. |
marginBottom? | number | Bottom margin in PDF points. |
marginLeft? | number | Left margin in PDF points. |
marginRight? | number | Right margin in PDF points. |
marginTop? | number | Top margin in PDF points. |
spacing? | FlowSpacingScale | Semantic spacing scale used by flow layout. |
width? | number | Width in PDF points. |
writingMode? | "horizontal" | "vertical" | Text writing mode. "horizontal" (default) places characters left-to-right. "vertical" stacks characters top-to-bottom. |
x? | number | Horizontal position in PDF points. |
y? | number | Vertical position in PDF points. |