drawLine
abstract fun drawLine(x1: Float, y1: Float, x2: Float, y2: Float, color: PdfColor, thickness: Float, style: LineStyle = LineStyle.Solid)
Strokes a straight line between two points.
Parameters
style
stroke pattern. LineStyle.Solid is the default and the only pattern that needs no setup. Dashed/dotted strokes produce repeating segments whose length is a multiple of thickness so the visual weight remains balanced as thickness scales.