header

fun header(background: PdfColor? = PdfColor.LightGray, minHeight: Dp? = null, block: TableRowScope.() -> Unit)

Adds a header row.

Header cells default to a bold text style and a light-gray background. Both are overridable inside the block (per-cell) or via the parameters here (whole row).

Calling header more than once replaces the previous header.