title: Generate PDF from Template using Javascript
body: <p>The situation is the following:
  We have a website, that generates (large) contract-JSONs which we now want to export as pdfs using the frontend, so javascript.
  At the moment, I use pdfmake but i find it very hard to get a layout that stays the same for every contract.
  I would prefer to have some kind of template which i could fill with the values from the JSON.</p>
  
  <p>Best I can think of at the moment would be to write a pdf template with LaTex and fill it with some template framework and compile it with a LaTex compiler.
  However I hope there is something simpler you could tell me.
  It's only important, to get from JSON to the pdf in one click.</p>