Row component for PDF documents.
Distributes content horizontally in columns by weight. Operates at Document level.
Example
doc
|> Pdf.Component.Row.render({50, 700}, {400, 80}, [
{1, fn doc, area -> Pdf.text_at(doc, {area.x, area.y - 14}, "Col 1") end},
{2, fn doc, area -> Pdf.text_at(doc, {area.x, area.y - 14}, "Col 2") end}
], gap: 10)
Summary
Functions
Render a horizontal row at {x, y} with size {w, h}.