Pdfmake could generate LaTeX, which can then be properly compiled to a pdf (potentially with texlive.js).
In Haskell this is possible with similar DSLs. Very useful to generate reports.
In Haskell this is possible with similar DSLs. Very useful to generate reports.
what doesn't!
>What is the advantage over simply creating an appropriate LaTeX/ConTeXt document in the background and serving that?
the obvious advantage is that you wouldn't have to learn LaTeX/ConTeXt, no?