Appearance
zeropdf / TableOptions
Interface: TableOptions
Defined in: src/types.ts:2047
Options for rendering tagged tables.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
align? | TextAlign | Horizontal alignment for laid-out content. | src/types.ts:2081 |
cellPadding? | number | Padding inside table cells in PDF points. | src/types.ts:2061 |
characterSpacing? | number | Additional spacing between characters in PDF points. | src/types.ts:2075 |
color? | ColorInput | Color used for drawing, text, or highlighting. | src/types.ts:2073 |
columnWidths? | readonly number[] | Explicit table column widths in PDF points. | src/types.ts:2055 |
direction? | TextDirection | Text direction used for shaping and layout. | src/types.ts:2069 |
fallbackFonts? | PdfFont[] | Fallback fonts used when the primary font lacks a glyph. | src/types.ts:2067 |
font? | PdfFont | Font used to render text. | src/types.ts:2065 |
fontSize? | number | Font size in PDF points. | src/types.ts:2071 |
headerColumns? | number | Number of leading columns treated as table headers. | src/types.ts:2059 |
headerRows? | number | Number of leading rows treated as table headers. | src/types.ts:2057 |
kerning? | boolean | Whether kerning should be applied where supported. | src/types.ts:2089 |
lineHeight? | number | Line height in PDF points. | src/types.ts:2079 |
rowGap? | number | Gap between table rows in PDF points. | src/types.ts:2063 |
structure? | PdfStructureOptions | Additional structure metadata for tagged PDF output. | src/types.ts:2091 |
summary? | string | Table summary for accessibility (/Summary attribute on the table structure element). Provides a description of the table for screen readers. | src/types.ts:2096 |
verticalAlign? | VerticalAlign | Vertical alignment of each cell's content within its row height. Applies to cells shorter than the tallest cell in the row. Defaults to "top". Can be overridden per cell via TableCellDefinition.verticalAlign. | src/types.ts:2087 |
width | number | Width in PDF points. | src/types.ts:2053 |
wordSpacing? | number | Additional spacing between words in PDF points. | src/types.ts:2077 |
x | number | Horizontal position in PDF points. | src/types.ts:2049 |
y | number | Vertical position in PDF points. | src/types.ts:2051 |