Skip to main content

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

PropertyTypeDescription
dashArray?number[]Dash pattern for stroked shapes.
fill?ColorInputFill color. Presence enables fill painting.
lineCap?LineCapLine cap for stroked shapes.
lineJoin?LineJoinLine join for stroked shapes.
lineWidth?numberStroke width in PDF points.
stroke?ColorInputStroke color. Defaults to black when only lineWidth is set.
tag?"Artifact"Structure tag; use "Artifact" to mark decorative shapes.