Currently, FramedElement is the only way to draw shapes with genpdf. We should support drawing arbitrary lines, and we should add support for line formats.
FramedElement
genpdf
See also:
Area::draw_line
PdfLayerReference::add_shape