Interface: TableCellDefinition
Detailed table cell object with span, header, scope, and structure options.
Properties
| Property | Type | Description |
|---|---|---|
align? | TextAlign | Horizontal text alignment for this cell, overriding TableOptions.align. |
annotations? | readonly ParagraphTextAnnotation[] | Inline annotations anchored to substrings of the rendered cell text. |
background? | ColorInput | Background fill for this cell, overriding headerBackground/zebra striping. |
bold? | boolean | Renders the cell text in the bold face of the table font (built-in variant or registered family face). |
color? | ColorInput | Text color for this cell, overriding TableOptions.color. |
colSpan? | number | Number of columns spanned by the cell. |
font? | PdfFont | Font 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? | boolean | Callback that returns header blocks for each page. |
italic? | boolean | Renders the cell text in the italic face of the table font (built-in variant or registered family face). |
rowSpan? | number | Number 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? | TableHeaderScope | Search scope used when finding related structure elements. |
structure? | PdfStructureOptions | Additional structure metadata for tagged PDF output. |
text? | string | Text content to render or inspect. Either text or runs must be provided. |
verticalAlign? | VerticalAlign | Vertical alignment of this cell's content within the row height, overriding TableOptions.verticalAlign. |