Appearance
zeropdf / TemplatePageOptions
Interface: TemplatePageOptions
Defined in: src/types.ts:1364
Page layout options used by template rendering.
Extends
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
align? | TextAlign | Horizontal alignment for laid-out content. | FlowOptions.align | src/types.ts:1083 |
color? | ColorInput | Color used for drawing, text, or highlighting. | FlowOptions.color | src/types.ts:1079 |
columns? | FlowColumnsOptions | Newspaper-style flow columns. | FlowOptions.columns | src/types.ts:1055 |
direction? | TextDirection | Text direction used for shaping and layout. | FlowOptions.direction | src/types.ts:1075 |
fallbackFonts? | PdfFont[] | Fallback fonts used when the primary font lacks a glyph. | FlowOptions.fallbackFonts | src/types.ts:1073 |
font? | PdfFont | Font used to render text. | FlowOptions.font | src/types.ts:1071 |
fontSize? | number | Font size in PDF points. | FlowOptions.fontSize | src/types.ts:1077 |
footerHeight? | number | Reserved footer height in PDF points. | - | src/types.ts:1370 |
gap? | number | Default vertical gap between flow blocks in PDF points. | FlowOptions.gap | src/types.ts:1067 |
headerHeight? | number | Reserved header height in PDF points. | - | src/types.ts:1368 |
kerning? | boolean | Whether kerning should be applied where supported. | FlowOptions.kerning | src/types.ts:1085 |
lineHeight? | number | Line height in PDF points. | FlowOptions.lineHeight | src/types.ts:1081 |
margin? | FlowMarginShorthand | CSS-like margin shorthand in PDF points. | FlowOptions.margin | src/types.ts:1057 |
marginBottom? | number | Bottom margin in PDF points. | FlowOptions.marginBottom | src/types.ts:1063 |
marginLeft? | number | Left margin in PDF points. | FlowOptions.marginLeft | src/types.ts:1065 |
marginRight? | number | Right margin in PDF points. | FlowOptions.marginRight | src/types.ts:1061 |
marginTop? | number | Top margin in PDF points. | FlowOptions.marginTop | src/types.ts:1059 |
size? | PageSize | Page size for the generated page. | - | src/types.ts:1366 |
spacing? | FlowSpacingScale | Semantic spacing scale used by flow layout. | FlowOptions.spacing | src/types.ts:1069 |
width? | number | Width in PDF points. | FlowOptions.width | src/types.ts:1053 |
writingMode? | "horizontal" | "vertical" | Text writing mode. "horizontal" (default) places characters left-to-right. "vertical" stacks characters top-to-bottom. | FlowOptions.writingMode | src/types.ts:1090 |
x? | number | Horizontal position in PDF points. | FlowOptions.x | src/types.ts:1049 |
y? | number | Vertical position in PDF points. | FlowOptions.y | src/types.ts:1051 |