Skip to content

zeropdf v1.3.0


zeropdf / FlowHeadingOptions

Interface: FlowHeadingOptions

Defined in: src/types.ts:1162

Flow text options plus heading-level configuration.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
align?TextAlignHorizontal alignment for laid-out content.TextBlockOptions.alignsrc/types.ts:871
blockAlign?"left" | "center" | "right"Alignment of the block inside the flow column.FlowHeadingOptions.blockAlignsrc/types.ts:1156
blockWidth?numberOptional width for the flow text block within the flow column.FlowHeadingOptions.blockWidthsrc/types.ts:1154
bold?booleanSelects the bold variant of font. See TextOptions.bold.TextBlockOptions.boldsrc/types.ts:849
characterSpacing?numberAdditional spacing between characters in PDF points.TextBlockOptions.characterSpacingsrc/types.ts:865
color?ColorInputColor used for drawing, text, or highlighting.TextBlockOptions.colorsrc/types.ts:863
direction?TextDirectionText direction used for shaping and layout.TextBlockOptions.directionsrc/types.ts:859
encoding?"winansi" | "macroman" | "pdfdoc"Built-in font encoding. When set, the font dictionary emits an /Encoding entry with the specified encoding (e.g. /WinAnsiEncoding). When undefined, the default encoding is used.TextBlockOptions.encodingsrc/types.ts:901
fallbackFonts?PdfFont[]Fallback fonts used when the primary font lacks a glyph.TextBlockOptions.fallbackFontssrc/types.ts:857
font?PdfFontFont used to render text.TextBlockOptions.fontsrc/types.ts:847
fontSize?numberFont size in PDF points.TextBlockOptions.fontSizesrc/types.ts:861
height?numberBox height in PDF points. When set together with verticalAlign, the wrapped lines are positioned within a box of this height starting at y and extending downward. Has no effect unless verticalAlign is given.TextBlockOptions.heightsrc/types.ts:877
italic?booleanSelects the italic variant of font. See TextOptions.italic.TextBlockOptions.italicsrc/types.ts:851
kerning?booleanWhether kerning should be applied where supported.TextBlockOptions.kerningsrc/types.ts:886
level?HeadingLevelHeading level to render and tag.-src/types.ts:1164
lineHeight?numberLine height in PDF points.TextBlockOptions.lineHeightsrc/types.ts:869
margin?FlowMarginShorthandCSS-like margin shorthand in PDF points.FlowTextOptions.marginsrc/types.ts:1137
marginBottom?numberBottom margin in PDF points.FlowTextOptions.marginBottomsrc/types.ts:1143
marginLeft?numberLeft margin in PDF points.FlowTextOptions.marginLeftsrc/types.ts:1145
marginRight?numberRight margin in PDF points.FlowTextOptions.marginRightsrc/types.ts:1141
marginTop?numberTop margin in PDF points.FlowTextOptions.marginTopsrc/types.ts:1139
maxLines?numberMaximum number of lines to render.TextBlockOptions.maxLinessrc/types.ts:884
strike?booleanDraws a strike-through line over the text.TextBlockOptions.strikesrc/types.ts:855
structure?PdfStructureOptionsAdditional structure metadata for tagged PDF output.TextBlockOptions.structuresrc/types.ts:895
tag?| PdfTextStructureTag | "Artifact"Structure tag used for tagged PDF output.TextBlockOptions.tagsrc/types.ts:893
underline?booleanDraws an underline beneath the text.TextBlockOptions.underlinesrc/types.ts:853
verticalAlign?VerticalAlignVertical alignment of the wrapped text within height. Requires height. Defaults to "top".TextBlockOptions.verticalAlignsrc/types.ts:882
wordSpacing?numberAdditional spacing between words in PDF points.TextBlockOptions.wordSpacingsrc/types.ts:867
writingMode?"horizontal" | "vertical"Text writing mode. "horizontal" (default) places characters left-to-right. "vertical" stacks characters top-to-bottom.TextBlockOptions.writingModesrc/types.ts:891

Released under the ISC license.