NAME
PDF::Make::Builder::Shape::Line - Line shape for PDF::Make
SYNOPSIS
$builder->add_shape(line => {
fill_colour => '#000',
x => 50,
y => 100,
ex => 500,
ey => 100,
type => 'dashed',
});
DESCRIPTION
Draws a straight line between two points on the current page canvas. Supports solid, dashed, and dotted line styles.
PROPERTIES
- fill_colour (Str, default
'#000') -
Stroke colour as a hex string.
- x (Num)
-
Start X coordinate. Defaults to the content area's left edge.
- y (Num)
-
Start Y coordinate (bottom-left origin). Defaults to the current cursor.
- ex (Num)
-
End X coordinate. Defaults to the right edge of the content area.
- ey (Num)
-
End Y coordinate (bottom-left origin). Defaults to the same as
y. - type (Str, default
'solid') -
Line style:
'solid','dashed', or'dotted'. - dash (ArrayRef)
-
Custom dash pattern passed directly to the PDF dash operator. Overrides
typewhen set.