TableScope

Receiver of table { ... }.

Adds rows to the table. Use header for the optional header row (which receives a default light-gray background and bold text style) and row for body rows. Iterate a list of model objects with forEach { row { ... } } to populate the table from a data source.

Functions

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

Adds a header row.

Link copied to clipboard
fun row(background: PdfColor? = null, cellPadding: Padding? = null, minHeight: Dp? = null, block: TableRowScope.() -> Unit)

Adds a body row.