sempdf
sempdf v1.9.1Interfaces

Interface: FlowHeadingOptions

sempdf v1.9.1


sempdf / FlowHeadingOptions

Defined in: src/types.ts:1310

Flow text options plus heading-level configuration.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
align?TextAlignHorizontal alignment for laid-out content.TextBlockOptions.alignsrc/types.ts:965
artifactSubtype?"Header" | "Footer" | "Watermark"Optional artifact subtype, such as Header, Footer, or Watermark.BmpImageOptions.artifactSubtypesrc/types.ts:379
artifactType?"Pagination" | "Layout" | "Page"Artifact type written to the marked-content property dictionary.BmpImageOptions.artifactTypesrc/types.ts:377
blockAlign?BlockAlignAlignment of the block inside the flow column.FlowTextOptions.blockAlignsrc/types.ts:1290
blockWidth?numberOptional width for the flow text block within the flow column.FlowTextOptions.blockWidthsrc/types.ts:1288
bold?booleanSelects the bold variant of font. See TextOptions.bold.TextBlockOptions.boldsrc/types.ts:943
characterSpacing?numberAdditional spacing between characters in PDF points.TextBlockOptions.characterSpacingsrc/types.ts:959
color?ColorInputColor used for drawing, text, or highlighting.TextBlockOptions.colorsrc/types.ts:957
direction?TextDirectionText direction used for shaping and layout.TextBlockOptions.directionsrc/types.ts:953
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:995
fallbackFonts?PdfFont[]Fallback fonts used when the primary font lacks a glyph.TextBlockOptions.fallbackFontssrc/types.ts:951
font?PdfFontFont used to render text.TextBlockOptions.fontsrc/types.ts:941
fontSize?numberFont size in PDF points.TextBlockOptions.fontSizesrc/types.ts:955
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:971
highlight?ColorInputBackground highlight color drawn behind the text. See TextOptions.highlight.TextBlockOptions.highlightsrc/types.ts:1011
horizontalScaling?numberHorizontal glyph scaling percentage. See TextOptions.horizontalScaling.TextBlockOptions.horizontalScalingsrc/types.ts:1009
italic?booleanSelects the italic variant of font. See TextOptions.italic.TextBlockOptions.italicsrc/types.ts:945
kerning?booleanWhether kerning should be applied where supported.TextBlockOptions.kerningsrc/types.ts:980
level?HeadingLevelHeading level to render and tag.-src/types.ts:1312
lineHeight?numberLine height in PDF points.TextBlockOptions.lineHeightsrc/types.ts:963
margin?FlowMarginShorthandCSS-like margin shorthand in PDF points.FlowTextOptions.marginsrc/types.ts:1271
marginBottom?numberBottom margin in PDF points.FlowTextOptions.marginBottomsrc/types.ts:1277
marginLeft?numberLeft margin in PDF points.FlowTextOptions.marginLeftsrc/types.ts:1279
marginRight?numberRight margin in PDF points.FlowTextOptions.marginRightsrc/types.ts:1275
marginTop?numberTop margin in PDF points.FlowTextOptions.marginTopsrc/types.ts:1273
maxLines?numberMaximum number of lines to render.TextBlockOptions.maxLinessrc/types.ts:978
orphans?numberMinimum number of lines to keep together at the bottom of a region before this paragraph is allowed to break across a column or page. If fewer than this many lines would remain at the bottom, the whole paragraph moves to the next region. Only applies to multi-column flows (single-column paragraphs are never split). Defaults to 1 (no constraint). Fractions are floored.FlowTextOptions.orphanssrc/types.ts:1298
renderMode?TextRenderModeGlyph painting mode. See TextOptions.renderMode.TextBlockOptions.renderModesrc/types.ts:1003
rise?numberRaises (+) or lowers (−) the baseline in PDF points. See TextOptions.rise.TextBlockOptions.risesrc/types.ts:997
strike?booleanDraws a strike-through line over the text.TextBlockOptions.strikesrc/types.ts:949
strokeColor?ColorInputStroke color for stroking render modes. See TextOptions.strokeColor.TextBlockOptions.strokeColorsrc/types.ts:1005
strokeWidth?numberStroke width for stroking render modes. See TextOptions.strokeWidth.TextBlockOptions.strokeWidthsrc/types.ts:1007
structure?PdfStructureOptionsAdditional structure metadata for tagged PDF output.TextBlockOptions.structuresrc/types.ts:989
subscript?booleanRenders the block as subscript. See TextOptions.subscript.TextBlockOptions.subscriptsrc/types.ts:1001
superscript?booleanRenders the block as superscript. See TextOptions.superscript.TextBlockOptions.superscriptsrc/types.ts:999
tag?TextTagOrArtifactStructure tag used for tagged PDF output.TextBlockOptions.tagsrc/types.ts:987
underline?booleanDraws an underline beneath the text.TextBlockOptions.underlinesrc/types.ts:947
verticalAlign?VerticalAlignVertical alignment of the wrapped text within height. Requires height. Defaults to "top".TextBlockOptions.verticalAlignsrc/types.ts:976
widows?numberMinimum number of lines this paragraph must carry into a new region after a break, so a lone trailing line is never left stranded. Only applies to multi-column flows. Defaults to 1 (no constraint). Fractions are floored.FlowTextOptions.widowssrc/types.ts:1304
wordSpacing?numberAdditional spacing between words in PDF points.TextBlockOptions.wordSpacingsrc/types.ts:961
writingMode?WritingModeText writing mode. "horizontal" (default) places characters left-to-right. "vertical" stacks characters top-to-bottom.TextBlockOptions.writingModesrc/types.ts:985

On this page