Skip to content

zeropdf v1.3.0


zeropdf / TemplatePageOptions

Interface: TemplatePageOptions

Defined in: src/types.ts:1364

Page layout options used by template rendering.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
align?TextAlignHorizontal alignment for laid-out content.FlowOptions.alignsrc/types.ts:1083
color?ColorInputColor used for drawing, text, or highlighting.FlowOptions.colorsrc/types.ts:1079
columns?FlowColumnsOptionsNewspaper-style flow columns.FlowOptions.columnssrc/types.ts:1055
direction?TextDirectionText direction used for shaping and layout.FlowOptions.directionsrc/types.ts:1075
fallbackFonts?PdfFont[]Fallback fonts used when the primary font lacks a glyph.FlowOptions.fallbackFontssrc/types.ts:1073
font?PdfFontFont used to render text.FlowOptions.fontsrc/types.ts:1071
fontSize?numberFont size in PDF points.FlowOptions.fontSizesrc/types.ts:1077
footerHeight?numberReserved footer height in PDF points.-src/types.ts:1370
gap?numberDefault vertical gap between flow blocks in PDF points.FlowOptions.gapsrc/types.ts:1067
headerHeight?numberReserved header height in PDF points.-src/types.ts:1368
kerning?booleanWhether kerning should be applied where supported.FlowOptions.kerningsrc/types.ts:1085
lineHeight?numberLine height in PDF points.FlowOptions.lineHeightsrc/types.ts:1081
margin?FlowMarginShorthandCSS-like margin shorthand in PDF points.FlowOptions.marginsrc/types.ts:1057
marginBottom?numberBottom margin in PDF points.FlowOptions.marginBottomsrc/types.ts:1063
marginLeft?numberLeft margin in PDF points.FlowOptions.marginLeftsrc/types.ts:1065
marginRight?numberRight margin in PDF points.FlowOptions.marginRightsrc/types.ts:1061
marginTop?numberTop margin in PDF points.FlowOptions.marginTopsrc/types.ts:1059
size?PageSizePage size for the generated page.-src/types.ts:1366
spacing?FlowSpacingScaleSemantic spacing scale used by flow layout.FlowOptions.spacingsrc/types.ts:1069
width?numberWidth in PDF points.FlowOptions.widthsrc/types.ts:1053
writingMode?"horizontal" | "vertical"Text writing mode. "horizontal" (default) places characters left-to-right. "vertical" stacks characters top-to-bottom.FlowOptions.writingModesrc/types.ts:1090
x?numberHorizontal position in PDF points.FlowOptions.xsrc/types.ts:1049
y?numberVertical position in PDF points.FlowOptions.ysrc/types.ts:1051

Released under the ISC license.