title: How to generate PDF from .tex in browser, using memoir document class?
body: <p>I'm writing a single-page web-app custom data editor, which currently does not require any server side code to function.</p>
  
  <p>The app generates a .tex file as output. The generated file uses memoir document class and does some complex formatting stuff that is hard to reproduce outside of a *TeX ecosystem.</p>
  
  <p>I would like to let users download PDFs, not .tex files.</p>
  
  <p>I would prefer to generate these PDFs in browser, client-side. I would settle for server-side generation though.</p>
  
  <p>I tried texlive.js, but it lacks memoir. As for the server side, I would like to avoid setting a tex to pdf generation pipeline from scratch --- I feel that it would be a security nightmare.</p>
  
  <p>Any advice?</p>