sempdf
sempdf v1.9.1Interfaces

Interface: TableCellDefinition

sempdf v1.9.1


sempdf / TableCellDefinition

Defined in: src/types.ts:2526

Detailed table cell object with span, header, scope, and structure options.

Properties

PropertyTypeDescriptionDefined in
align?TextAlignHorizontal text alignment for this cell, overriding TableOptions.align.src/types.ts:2561
annotations?readonly ParagraphTextAnnotation[]Inline annotations anchored to substrings of the rendered cell text.src/types.ts:2546
background?ColorInputBackground fill for this cell, overriding headerBackground/zebra striping.src/types.ts:2563
bold?booleanRenders the cell text in the bold face of the table font (built-in variant or registered family face).src/types.ts:2553
border?TableCellBordersPer-edge borders for this cell, drawn on top of the table-level TableOptions.borders. Use it to add a border on any specific cell, or rule a whole row by setting the same side on each cell in that row.src/types.ts:2569
color?ColorInputText color for this cell, overriding TableOptions.color.src/types.ts:2559
colSpan?numberNumber of columns spanned by the cell.src/types.ts:2542
font?PdfFontFont for this cell, overriding TableOptions.font. Accepts a built-in name, embedded handle, or registered family name (combined with the cell bold/italic flags).src/types.ts:2557
header?booleanCallback that returns header blocks for each page.src/types.ts:2536
italic?booleanRenders the cell text in the italic face of the table font (built-in variant or registered family face).src/types.ts:2555
rowSpan?numberNumber of rows spanned by the cell.src/types.ts:2540
runs?readonly InlineTextRun[]Inline rich-text runs rendered instead of text: mixed fonts, sizes, colors, bold/italic, underline/strike, and links wrap together inside the cell. Run styles omitted fall back to the cell, then table, style.src/types.ts:2534
scope?TableHeaderScopeSearch scope used when finding related structure elements.src/types.ts:2538
structure?PdfStructureOptionsAdditional structure metadata for tagged PDF output.src/types.ts:2544
text?stringText content to render or inspect. Either text or runs must be provided.src/types.ts:2528
verticalAlign?VerticalAlignVertical alignment of this cell's content within the row height, overriding TableOptions.verticalAlign.src/types.ts:2551

On this page