Skip to content

a11ydocs v1.7.0


a11ydocs / TableOptions

Interface: TableOptions

Defined in: src/types.ts:2086

Options for rendering tagged tables.

Properties

PropertyTypeDescriptionDefined in
align?TextAlignHorizontal alignment for laid-out content.src/types.ts:2120
borderColor?ColorInputColor of the cell grid lines. Setting this (or borderWidth) draws a border around every cell. Drawn as an artifact (not part of the structure tree).src/types.ts:2141
borderWidth?numberWidth of the cell grid lines in PDF points. Defaults to 0.75 when borderColor is set.src/types.ts:2143
cellPadding?numberPadding inside table cells in PDF points.src/types.ts:2100
characterSpacing?numberAdditional spacing between characters in PDF points.src/types.ts:2114
color?ColorInputColor used for drawing, text, or highlighting.src/types.ts:2112
columnWidths?readonly number[]Explicit table column widths in PDF points.src/types.ts:2094
direction?TextDirectionText direction used for shaping and layout.src/types.ts:2108
fallbackFonts?PdfFont[]Fallback fonts used when the primary font lacks a glyph.src/types.ts:2106
font?PdfFontFont used to render text.src/types.ts:2104
fontSize?numberFont size in PDF points.src/types.ts:2110
headerBackground?ColorInputBackground fill behind header cells (header rows/columns and cells marked header: true).src/types.ts:2145
headerColumns?numberNumber of leading columns treated as table headers.src/types.ts:2098
headerRows?numberNumber of leading rows treated as table headers.src/types.ts:2096
kerning?booleanWhether kerning should be applied where supported.src/types.ts:2128
lineHeight?numberLine height in PDF points.src/types.ts:2118
rowGap?numberGap between table rows in PDF points.src/types.ts:2102
structure?PdfStructureOptionsAdditional structure metadata for tagged PDF output.src/types.ts:2130
summary?stringTable summary for accessibility (/Summary attribute on the table structure element). Provides a description of the table for screen readers.src/types.ts:2135
verticalAlign?VerticalAlignVertical 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:2126
widthnumberWidth in PDF points.src/types.ts:2092
wordSpacing?numberAdditional spacing between words in PDF points.src/types.ts:2116
xnumberHorizontal position in PDF points.src/types.ts:2088
ynumberVertical position in PDF points.src/types.ts:2090
zebra?boolean | ColorInputAlternate-row striping for body rows: true fills every second body row with a light gray, or pass a color. Header rows are not striped.src/types.ts:2150

Released under the ISC license.