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