Interface: ShapeStyle
Simplified styling for the PdfPage shape helpers (rect, line,
circle, ellipse). The paint mode is inferred: a fill and stroke
together paint both; fill alone fills; otherwise the shape is stroked.
Properties
| Property | Type | Description |
|---|---|---|
dashArray? | number[] | Dash pattern for stroked shapes. |
fill? | ColorInput | Fill color. Presence enables fill painting. |
lineCap? | LineCap | Line cap for stroked shapes. |
lineJoin? | LineJoin | Line join for stroked shapes. |
lineWidth? | number | Stroke width in PDF points. |
stroke? | ColorInput | Stroke color. Defaults to black when only lineWidth is set. |
tag? | "Artifact" | Structure tag; use "Artifact" to mark decorative shapes. |