Skip to main content

Interface: TableOptions

Options for rendering tagged tables.

Properties

PropertyTypeDescription
align?TextAlignHorizontal alignment for laid-out content.
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).
borderWidth?numberWidth of the cell grid lines in PDF points. Defaults to 0.75 when borderColor is set.
cellPadding?numberPadding inside table cells in PDF points.
characterSpacing?numberAdditional spacing between characters in PDF points.
color?ColorInputColor used for drawing, text, or highlighting.
columnWidths?readonly number[]Explicit table column widths in PDF points.
direction?TextDirectionText direction used for shaping and layout.
fallbackFonts?PdfFont[]Fallback fonts used when the primary font lacks a glyph.
font?PdfFontFont used to render text.
fontSize?numberFont size in PDF points.
headerBackground?ColorInputBackground fill behind header cells (header rows/columns and cells marked header: true).
headerColumns?numberNumber of leading columns treated as table headers.
headerRows?numberNumber of leading rows treated as table headers.
kerning?booleanWhether kerning should be applied where supported.
lineHeight?numberLine height in PDF points.
rowGap?numberGap between table rows in PDF points.
structure?PdfStructureOptionsAdditional structure metadata for tagged PDF output.
summary?stringTable summary for accessibility (/Summary attribute on the table structure element). Provides a description of the table for screen readers.
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.
widthnumberWidth in PDF points.
wordSpacing?numberAdditional spacing between words in PDF points.
xnumberHorizontal position in PDF points.
ynumberVertical position in PDF points.
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.