sempdf
sempdf v1.9.1Interfaces

Interface: FlowRichTextOptions

sempdf v1.9.1


sempdf / FlowRichTextOptions

Defined in: src/types.ts:1443

Options for placing a paragraph of inline rich-text runs through the flow layout API. Position and width are supplied by the flow cursor; the remaining fields mirror RichTextOptions.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
align?BlockAlign | "justify"Horizontal alignment of each line. Defaults to "left". Ignored in vertical mode.RichTextOptions.alignsrc/types.ts:1086
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.-src/types.ts:1448
blockWidth?numberOptional width for the flow text block within the flow column.-src/types.ts:1446
color?ColorInputDefault color for runs that omit one.RichTextOptions.colorsrc/types.ts:1116
direction?TextDirectionReading direction for the runs. "auto" detects from the run text. Right-to-left lays each line out from the right edge; this is line-level direction, not full mixed-direction bidirectional reordering.RichTextOptions.directionsrc/types.ts:1103
fallbackFonts?PdfFont[]Fallback fonts for characters the run's font cannot encode.RichTextOptions.fallbackFontssrc/types.ts:1112
font?PdfFontDefault font for runs that omit one.RichTextOptions.fontsrc/types.ts:1110
fontSize?numberDefault font size for runs that omit one.RichTextOptions.fontSizesrc/types.ts:1114
height?numberBox height in PDF points. 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. Horizontal mode only.RichTextOptions.heightsrc/types.ts:1092
kerning?booleanDefault kerning behavior for runs that omit it.RichTextOptions.kerningsrc/types.ts:1118
lineHeight?numberLine height in PDF points (column spacing in vertical mode). Defaults to 1.2 × the largest run font size.RichTextOptions.lineHeightsrc/types.ts:1084
margin?FlowMarginShorthandCSS-like margin shorthand in PDF points.FlowBlockSpacingOptions.marginsrc/types.ts:1271
marginBottom?numberBottom margin in PDF points.FlowBlockSpacingOptions.marginBottomsrc/types.ts:1277
marginLeft?numberLeft margin in PDF points.FlowBlockSpacingOptions.marginLeftsrc/types.ts:1279
marginRight?numberRight margin in PDF points.FlowBlockSpacingOptions.marginRightsrc/types.ts:1275
marginTop?numberTop margin in PDF points.FlowBlockSpacingOptions.marginTopsrc/types.ts:1273
structure?PdfStructureOptionsAdditional structure metadata for tagged PDF output.RichTextOptions.structuresrc/types.ts:1122
tag?TextTagOrArtifactStructure tag used for tagged PDF output. Defaults to "P".RichTextOptions.tagsrc/types.ts:1120
verticalAlign?VerticalAlignVertical alignment of the wrapped runs within height. Requires height. Defaults to "top". Horizontal mode only.RichTextOptions.verticalAlignsrc/types.ts:1097
writingMode?WritingModeWriting mode. "horizontal" (default) flows runs left-to-right and wraps onto new lines. "vertical" stacks the runs top-to-bottom in one column.RichTextOptions.writingModesrc/types.ts:1108

On this page