DropShadow

data class DropShadow(val color: PdfColor = PdfColor(0f, 0f, 0f, 0.18f), val offsetX: Dp = Dp.Zero, val offsetY: Dp = Dp(2f), val blur: Dp = Dp(6f))

Soft shadow drawn behind a decorated container (card, box, column, row).

PDF has no native gaussian-blur primitive, so the renderer approximates the shadow with a small stack of concentric translucent rounded rectangles — visually close to a blur at typical card sizes while keeping the output fully vector.

Constructors

Link copied to clipboard
constructor(color: PdfColor = PdfColor(0f, 0f, 0f, 0.18f), offsetX: Dp = Dp.Zero, offsetY: Dp = Dp(2f), blur: Dp = Dp(6f))

Properties

Link copied to clipboard
val blur: Dp

how far the shadow fades beyond the container edge.

Link copied to clipboard

shadow colour. The alpha channel is the total shadow opacity at its centre — the renderer divides it across the blur layers.

Link copied to clipboard
val offsetX: Dp

horizontal displacement of the shadow.

Link copied to clipboard
val offsetY: Dp

vertical displacement; positive values drop the shadow downward, the usual elevation direction.