Skip to main content

Interface: TemplatePageOptions

Page layout options used by template rendering.

Extends

Properties

PropertyTypeDescriptionInherited from
align?TextAlignHorizontal alignment for laid-out content.FlowOptions.align
color?ColorInputColor used for drawing, text, or highlighting.FlowOptions.color
columns?FlowColumnsOptionsNewspaper-style flow columns.FlowOptions.columns
direction?TextDirectionText direction used for shaping and layout.FlowOptions.direction
fallbackFonts?PdfFont[]Fallback fonts used when the primary font lacks a glyph.FlowOptions.fallbackFonts
font?PdfFontFont used to render text.FlowOptions.font
fontSize?numberFont size in PDF points.FlowOptions.fontSize
footerHeight?numberReserved footer height in PDF points.-
gap?numberDefault vertical gap between flow blocks in PDF points.FlowOptions.gap
headerHeight?numberReserved header height in PDF points.-
kerning?booleanWhether kerning should be applied where supported.FlowOptions.kerning
lineHeight?numberLine height in PDF points.FlowOptions.lineHeight
margin?FlowMarginShorthandCSS-like margin shorthand in PDF points.FlowOptions.margin
marginBottom?numberBottom margin in PDF points.FlowOptions.marginBottom
marginLeft?numberLeft margin in PDF points.FlowOptions.marginLeft
marginRight?numberRight margin in PDF points.FlowOptions.marginRight
marginTop?numberTop margin in PDF points.FlowOptions.marginTop
size?PageSizePage size for the generated page.-
spacing?FlowSpacingScaleSemantic spacing scale used by flow layout.FlowOptions.spacing
width?numberWidth 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?numberHorizontal position in PDF points.FlowOptions.x
y?numberVertical position in PDF points.FlowOptions.y