drawPath

abstract fun drawPath(commands: List<PathCommand>, fill: PdfPaint?, strokeColor: PdfColor?, strokeWidth: Float)

Draws a vector path defined by a sequence of PathCommands.

The platform translates each command into a native path and then fills and / or strokes that path. The fill is a PdfPaint — either a solid colour or a gradient. Pass null for fill to skip filling and null for strokeColor (or 0f for strokeWidth) to skip stroking.