path

fun path(fill: PdfColor? = null, fillPaint: PdfPaint? = null, strokeColor: PdfColor? = null, strokeWidth: Float = 0.0f, block: PathScope.() -> Unit)

Adds one path. Provide fill (solid shorthand) or fillPaint (gradient — wins over fill) to fill the interior, and strokeColor + strokeWidth to outline it. Both may be combined.