sempdf
sempdf v1.9.1Interfaces

Interface: FlowOptions

sempdf v1.9.1


sempdf / FlowOptions

Defined in: src/types.ts:1177

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

Extended by

Properties

PropertyTypeDescriptionDefined in
align?TextAlignHorizontal alignment for laid-out content.src/types.ts:1213
color?ColorInputColor used for drawing, text, or highlighting.src/types.ts:1209
columns?FlowColumnsOptionsNewspaper-style flow columns.src/types.ts:1185
direction?TextDirectionText 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?PdfFontFont used to render text.src/types.ts:1201
fontSize?numberFont size in PDF points.src/types.ts:1207
gap?numberDefault vertical gap between flow blocks in PDF points.src/types.ts:1197
kerning?booleanWhether kerning should be applied where supported.src/types.ts:1215
lineHeight?numberLine height in PDF points.src/types.ts:1211
margin?FlowMarginShorthandCSS-like margin shorthand in PDF points.src/types.ts:1187
marginBottom?numberBottom margin in PDF points.src/types.ts:1193
marginLeft?numberLeft margin in PDF points.src/types.ts:1195
marginRight?numberRight margin in PDF points.src/types.ts:1191
marginTop?numberTop margin in PDF points.src/types.ts:1189
spacing?FlowSpacingScaleSemantic spacing scale used by flow layout.src/types.ts:1199
width?numberWidth in PDF points.src/types.ts:1183
writingMode?WritingModeText writing mode. "horizontal" (default) places characters left-to-right. "vertical" stacks characters top-to-bottom.src/types.ts:1220
x?numberHorizontal position in PDF points.src/types.ts:1179
y?numberVertical position in PDF points.src/types.ts:1181

On this page