Skip to main content

Interface: TableCellDefinition

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

Properties

PropertyTypeDescription
align?TextAlignHorizontal text alignment for this cell, overriding TableOptions.align.
annotations?readonly ParagraphTextAnnotation[]Inline annotations anchored to substrings of the rendered cell text.
background?ColorInputBackground fill for this cell, overriding headerBackground/zebra striping.
bold?booleanRenders the cell text in the bold face of the table font (built-in variant or registered family face).
color?ColorInputText color for this cell, overriding TableOptions.color.
colSpan?numberNumber of columns spanned by the cell.
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).
header?booleanCallback that returns header blocks for each page.
italic?booleanRenders the cell text in the italic face of the table font (built-in variant or registered family face).
rowSpan?numberNumber of rows spanned by the cell.
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.
scope?TableHeaderScopeSearch scope used when finding related structure elements.
structure?PdfStructureOptionsAdditional structure metadata for tagged PDF output.
text?stringText content to render or inspect. Either text or runs must be provided.
verticalAlign?VerticalAlignVertical alignment of this cell's content within the row height, overriding TableOptions.verticalAlign.