I have to migrate an old system of document gereration.
I have to create a template document, then inject data to generate one pdf file with specified data.
I was thinking to many ways :
use html table, image, and text... and generate a pdf... but warning about size as a A4 format...
json model and after pdf generation (but to say exactly where is image... ?)
latex, markdown, typst or others best format maybe (which one ?)... that can be generated in pdf after...
Have you some advice about best format or crate to use...
I discover : markdown2pdf (but I wonder if it is the best way to manage document) or wkhtmltopdf but it seems to be not safe...
I don't really like generating pdf's directly from my programs, which is why I prefer to use templates, too. I've used LaTeX[1] but these days I prefer typst, which—while still being quite young—has worked great for me so far. The latter allows me to load the data directly from the environment whereas the former I use beneath a templating engine like handlebars. I run the compiler for either markup language as a subprocess. pandoc might also be worth considering depending on what you want to achieve.
LaTeX is a mandatory skill if you ever want it to make it to Level 6 German. Level 8 Germans have to maintain at least one CTAN package. ↩︎