sempdf v1.9.1Interfaces
Interface: FlowOptions
sempdf / FlowOptions
Defined in: src/types.ts:1177
Initial layout, typography, and spacing options for a PdfFlow cursor.
Extended by
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
align? | TextAlign | Horizontal alignment for laid-out content. | src/types.ts:1213 |
color? | ColorInput | Color used for drawing, text, or highlighting. | src/types.ts:1209 |
columns? | FlowColumnsOptions | Newspaper-style flow columns. | src/types.ts:1185 |
direction? | TextDirection | Text direction used for shaping and layout. | src/types.ts:1205 |
fallbackFonts? | PdfFont[] | Fallback fonts used when the primary font lacks a glyph. | src/types.ts:1203 |
font? | PdfFont | Font used to render text. | src/types.ts:1201 |
fontSize? | number | Font size in PDF points. | src/types.ts:1207 |
gap? | number | Default vertical gap between flow blocks in PDF points. | src/types.ts:1197 |
kerning? | boolean | Whether kerning should be applied where supported. | src/types.ts:1215 |
lineHeight? | number | Line height in PDF points. | src/types.ts:1211 |
margin? | FlowMarginShorthand | CSS-like margin shorthand in PDF points. | src/types.ts:1187 |
marginBottom? | number | Bottom margin in PDF points. | src/types.ts:1193 |
marginLeft? | number | Left margin in PDF points. | src/types.ts:1195 |
marginRight? | number | Right margin in PDF points. | src/types.ts:1191 |
marginTop? | number | Top margin in PDF points. | src/types.ts:1189 |
spacing? | FlowSpacingScale | Semantic spacing scale used by flow layout. | src/types.ts:1199 |
width? | number | Width in PDF points. | src/types.ts:1183 |
writingMode? | WritingMode | Text writing mode. "horizontal" (default) places characters left-to-right. "vertical" stacks characters top-to-bottom. | src/types.ts:1220 |
x? | number | Horizontal position in PDF points. | src/types.ts:1179 |
y? | number | Vertical position in PDF points. | src/types.ts:1181 |