One thing that worked well in practice (years ago):
- design svg template (eg. in inkscape)
- set placeholders (as svg is just xml -- {%address%} etc)
- replace the placeholders with the actual value & use headless inkscape to produce PDF
- design svg template (eg. in inkscape)
- set placeholders (as svg is just xml -- {%address%} etc)
- replace the placeholders with the actual value & use headless inkscape to produce PDF
$ inkscape rendered.svg --export-pdf=output.pdf
I think there's also a way to do batch processing where you don't need to spin up a new inkscape process for each file (which takes time), but I don't remember how it works anymore.