sempdf
sempdf v1.9.1Interfaces

Interface: TemplatePageOptions

sempdf v1.9.1


sempdf / TemplatePageOptions

Defined in: src/types.ts:1635

Page layout options used by template rendering.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
align?TextAlignHorizontal alignment for laid-out content.FlowOptions.alignsrc/types.ts:1213
color?ColorInputColor used for drawing, text, or highlighting.FlowOptions.colorsrc/types.ts:1209
columns?FlowColumnsOptionsNewspaper-style flow columns.FlowOptions.columnssrc/types.ts:1185
direction?TextDirectionText direction used for shaping and layout.FlowOptions.directionsrc/types.ts:1205
fallbackFonts?PdfFont[]Fallback fonts used when the primary font lacks a glyph.FlowOptions.fallbackFontssrc/types.ts:1203
font?PdfFontFont used to render text.FlowOptions.fontsrc/types.ts:1201
fontSize?numberFont size in PDF points.FlowOptions.fontSizesrc/types.ts:1207
footerHeight?numberReserved footer height in PDF points.-src/types.ts:1641
gap?numberDefault vertical gap between flow blocks in PDF points.FlowOptions.gapsrc/types.ts:1197
headerHeight?numberReserved header height in PDF points.-src/types.ts:1639
kerning?booleanWhether kerning should be applied where supported.FlowOptions.kerningsrc/types.ts:1215
lineHeight?numberLine height in PDF points.FlowOptions.lineHeightsrc/types.ts:1211
margin?FlowMarginShorthandCSS-like margin shorthand in PDF points.FlowOptions.marginsrc/types.ts:1187
marginBottom?numberBottom margin in PDF points.FlowOptions.marginBottomsrc/types.ts:1193
marginLeft?numberLeft margin in PDF points.FlowOptions.marginLeftsrc/types.ts:1195
marginRight?numberRight margin in PDF points.FlowOptions.marginRightsrc/types.ts:1191
marginTop?numberTop margin in PDF points.FlowOptions.marginTopsrc/types.ts:1189
size?PageSizePage size for the generated page.-src/types.ts:1637
spacing?FlowSpacingScaleSemantic spacing scale used by flow layout.FlowOptions.spacingsrc/types.ts:1199
width?numberWidth in PDF points.FlowOptions.widthsrc/types.ts:1183
writingMode?WritingModeText writing mode. "horizontal" (default) places characters left-to-right. "vertical" stacks characters top-to-bottom.FlowOptions.writingModesrc/types.ts:1220
x?numberHorizontal position in PDF points.FlowOptions.xsrc/types.ts:1179
y?numberVertical position in PDF points.FlowOptions.ysrc/types.ts:1181

On this page