BorderStroke

data class BorderStroke(val width: Dp, val color: PdfColor, val style: LineStyle = LineStyle.Solid)

Outline drawn around a container.

Reused by com.conamobile.pdfkmp.dsl.column, com.conamobile.pdfkmp.dsl.row, com.conamobile.pdfkmp.dsl.box, and com.conamobile.pdfkmp.dsl.card to give them a coloured outline. Pass null instead of a BorderStroke to skip the outline; BorderStroke(0.dp, ...) does the same.

Constructors

Link copied to clipboard
constructor(width: Dp, color: PdfColor, style: LineStyle = LineStyle.Solid)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

solid stroke colour.

Link copied to clipboard

solid / dashed / dotted pattern. Dashed and dotted borders are drawn edge-by-edge, so they apply to sharp-cornered rectangles; a container with a non-zero corner radius falls back to a solid outline because the dash phase cannot follow the arc cleanly.

Link copied to clipboard
val width: Dp

stroke width in PDF points.