divider
fun divider(thickness: Dp = Dp(0.5f), color: PdfColor = PdfColor.Gray, style: LineStyle = LineStyle.Solid)
Appends a horizontal divider line that spans the parent's full available width.
Useful for visually separating sections — under section headings, between table rows that don't have their own border, or as a quiet footer rule. The default look is a 0.5 dp solid gray line which reads as a hairline rule on most PDF viewers.
Parameters
thickness
stroke width. 0.5.dp is the safe default; bump to 1.dp or more for more visual weight.
color
stroke colour.
style
stroke pattern — solid (default), dashed, or dotted.