sempdf v1.9.1Interfaces
Interface: TemplatePageOptions
sempdf / TemplatePageOptions
Defined in: src/types.ts:1635
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:1213 |
color? | ColorInput | Color used for drawing, text, or highlighting. | FlowOptions.color | src/types.ts:1209 |
columns? | FlowColumnsOptions | Newspaper-style flow columns. | FlowOptions.columns | src/types.ts:1185 |
direction? | TextDirection | Text direction used for shaping and layout. | FlowOptions.direction | src/types.ts:1205 |
fallbackFonts? | PdfFont[] | Fallback fonts used when the primary font lacks a glyph. | FlowOptions.fallbackFonts | src/types.ts:1203 |
font? | PdfFont | Font used to render text. | FlowOptions.font | src/types.ts:1201 |
fontSize? | number | Font size in PDF points. | FlowOptions.fontSize | src/types.ts:1207 |
footerHeight? | number | Reserved footer height in PDF points. | - | src/types.ts:1641 |
gap? | number | Default vertical gap between flow blocks in PDF points. | FlowOptions.gap | src/types.ts:1197 |
headerHeight? | number | Reserved header height in PDF points. | - | src/types.ts:1639 |
kerning? | boolean | Whether kerning should be applied where supported. | FlowOptions.kerning | src/types.ts:1215 |
lineHeight? | number | Line height in PDF points. | FlowOptions.lineHeight | src/types.ts:1211 |
margin? | FlowMarginShorthand | CSS-like margin shorthand in PDF points. | FlowOptions.margin | src/types.ts:1187 |
marginBottom? | number | Bottom margin in PDF points. | FlowOptions.marginBottom | src/types.ts:1193 |
marginLeft? | number | Left margin in PDF points. | FlowOptions.marginLeft | src/types.ts:1195 |
marginRight? | number | Right margin in PDF points. | FlowOptions.marginRight | src/types.ts:1191 |
marginTop? | number | Top margin in PDF points. | FlowOptions.marginTop | src/types.ts:1189 |
size? | PageSize | Page size for the generated page. | - | src/types.ts:1637 |
spacing? | FlowSpacingScale | Semantic spacing scale used by flow layout. | FlowOptions.spacing | src/types.ts:1199 |
width? | number | Width in PDF points. | FlowOptions.width | src/types.ts:1183 |
writingMode? | WritingMode | Text writing mode. "horizontal" (default) places characters left-to-right. "vertical" stacks characters top-to-bottom. | FlowOptions.writingMode | src/types.ts:1220 |
x? | number | Horizontal position in PDF points. | FlowOptions.x | src/types.ts:1179 |
y? | number | Vertical position in PDF points. | FlowOptions.y | src/types.ts:1181 |