Pdf.Component.Signature (ex_pdf_components v1.0.1)

Copy Markdown View Source

Signature component for PDF documents.

Renders a signature line with name, title/role, and optional date. Useful for contracts, letters, and formal documents.

Examples

doc |> Pdf.Component.Signature.render({50, 200}, %{
  name: "John Doe",
  title: "CEO, Acme Corp"
})

doc |> Pdf.Component.Signature.render({50, 200}, %{
  name: "Jane Smith",
  title: "Chief Architect",
  date: "May 19, 2026",
  width: 250
})

Summary

Functions

Render a signature block at {x, y}.

Functions

render(doc, arg, style \\ %{})

Render a signature block at {x, y}.

Style options

  • :name — signer name (required)
  • :title — role/title below name
  • :date — optional date string
  • :width — line width (default 200)
  • :font — font name (default "Helvetica")
  • :line_color — signature line color
  • :name_color — name text color
  • :title_color — title/date text color
  • :label — label above line (e.g. "Authorized by")