Skip to content

zeropdf v1.3.0


zeropdf / FlowOptions

Interface: FlowOptions

Defined in: src/types.ts:1047

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:1083
color?ColorInputColor used for drawing, text, or highlighting.src/types.ts:1079
columns?FlowColumnsOptionsNewspaper-style flow columns.src/types.ts:1055
direction?TextDirectionText direction used for shaping and layout.src/types.ts:1075
fallbackFonts?PdfFont[]Fallback fonts used when the primary font lacks a glyph.src/types.ts:1073
font?PdfFontFont used to render text.src/types.ts:1071
fontSize?numberFont size in PDF points.src/types.ts:1077
gap?numberDefault vertical gap between flow blocks in PDF points.src/types.ts:1067
kerning?booleanWhether kerning should be applied where supported.src/types.ts:1085
lineHeight?numberLine height in PDF points.src/types.ts:1081
margin?FlowMarginShorthandCSS-like margin shorthand in PDF points.src/types.ts:1057
marginBottom?numberBottom margin in PDF points.src/types.ts:1063
marginLeft?numberLeft margin in PDF points.src/types.ts:1065
marginRight?numberRight margin in PDF points.src/types.ts:1061
marginTop?numberTop margin in PDF points.src/types.ts:1059
spacing?FlowSpacingScaleSemantic spacing scale used by flow layout.src/types.ts:1069
width?numberWidth in PDF points.src/types.ts:1053
writingMode?"horizontal" | "vertical"Text writing mode. "horizontal" (default) places characters left-to-right. "vertical" stacks characters top-to-bottom.src/types.ts:1090
x?numberHorizontal position in PDF points.src/types.ts:1049
y?numberVertical position in PDF points.src/types.ts:1051

Released under the ISC license.