sempdf
sempdf v1.9.1Interfaces

Interface: TextBlockOptions

sempdf v1.9.1


sempdf / TextBlockOptions

Defined in: src/types.ts:933

Options for laying out wrapped text blocks.

Extends

  • ArtifactOptions

Properties

PropertyTypeDescriptionInherited fromDefined in
align?TextAlignHorizontal alignment for laid-out content.-src/types.ts:965
artifactSubtype?"Header" | "Footer" | "Watermark"Optional artifact subtype, such as Header, Footer, or Watermark.ArtifactOptions.artifactSubtypesrc/types.ts:379
artifactType?"Pagination" | "Layout" | "Page"Artifact type written to the marked-content property dictionary.ArtifactOptions.artifactTypesrc/types.ts:377
bold?booleanSelects the bold variant of font. See TextOptions.bold.-src/types.ts:943
characterSpacing?numberAdditional spacing between characters in PDF points.-src/types.ts:959
color?ColorInputColor used for drawing, text, or highlighting.-src/types.ts:957
direction?TextDirectionText direction used for shaping and layout.-src/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.-src/types.ts:995
fallbackFonts?PdfFont[]Fallback fonts used when the primary font lacks a glyph.-src/types.ts:951
font?PdfFontFont used to render text.-src/types.ts:941
fontSize?numberFont size in PDF points.-src/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.-src/types.ts:971
highlight?ColorInputBackground highlight color drawn behind the text. See TextOptions.highlight.-src/types.ts:1011
horizontalScaling?numberHorizontal glyph scaling percentage. See TextOptions.horizontalScaling.-src/types.ts:1009
italic?booleanSelects the italic variant of font. See TextOptions.italic.-src/types.ts:945
kerning?booleanWhether kerning should be applied where supported.-src/types.ts:980
lineHeight?numberLine height in PDF points.-src/types.ts:963
maxLines?numberMaximum number of lines to render.-src/types.ts:978
renderMode?TextRenderModeGlyph painting mode. See TextOptions.renderMode.-src/types.ts:1003
rise?numberRaises (+) or lowers (−) the baseline in PDF points. See TextOptions.rise.-src/types.ts:997
strike?booleanDraws a strike-through line over the text.-src/types.ts:949
strokeColor?ColorInputStroke color for stroking render modes. See TextOptions.strokeColor.-src/types.ts:1005
strokeWidth?numberStroke width for stroking render modes. See TextOptions.strokeWidth.-src/types.ts:1007
structure?PdfStructureOptionsAdditional structure metadata for tagged PDF output.-src/types.ts:989
subscript?booleanRenders the block as subscript. See TextOptions.subscript.-src/types.ts:1001
superscript?booleanRenders the block as superscript. See TextOptions.superscript.-src/types.ts:999
tag?TextTagOrArtifactStructure tag used for tagged PDF output.-src/types.ts:987
underline?booleanDraws an underline beneath the text.-src/types.ts:947
verticalAlign?VerticalAlignVertical alignment of the wrapped text within height. Requires height. Defaults to "top".-src/types.ts:976
widthnumberWidth in PDF points.-src/types.ts:939
wordSpacing?numberAdditional spacing between words in PDF points.-src/types.ts:961
writingMode?WritingModeText writing mode. "horizontal" (default) places characters left-to-right. "vertical" stacks characters top-to-bottom.-src/types.ts:985
xnumberHorizontal position in PDF points.-src/types.ts:935
ynumberVertical position in PDF points.-src/types.ts:937

On this page