sempdf v1.9.1Interfaces
Interface: TableCellDefinition
sempdf / TableCellDefinition
Defined in: src/types.ts:2526
Detailed table cell object with span, header, scope, and structure options.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
align? | TextAlign | Horizontal 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? | ColorInput | Background fill for this cell, overriding headerBackground/zebra striping. | src/types.ts:2563 |
bold? | boolean | Renders the cell text in the bold face of the table font (built-in variant or registered family face). | src/types.ts:2553 |
border? | TableCellBorders | Per-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? | ColorInput | Text color for this cell, overriding TableOptions.color. | src/types.ts:2559 |
colSpan? | number | Number of columns spanned by the cell. | src/types.ts:2542 |
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). | src/types.ts:2557 |
header? | boolean | Callback that returns header blocks for each page. | src/types.ts:2536 |
italic? | boolean | Renders the cell text in the italic face of the table font (built-in variant or registered family face). | src/types.ts:2555 |
rowSpan? | number | Number 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? | TableHeaderScope | Search scope used when finding related structure elements. | src/types.ts:2538 |
structure? | PdfStructureOptions | Additional structure metadata for tagged PDF output. | src/types.ts:2544 |
text? | string | Text content to render or inspect. Either text or runs must be provided. | src/types.ts:2528 |
verticalAlign? | VerticalAlign | Vertical alignment of this cell's content within the row height, overriding TableOptions.verticalAlign. | src/types.ts:2551 |