I'm writing a single-page web-app custom data editor, which currently does not require any server side code to function.
我正在编写一个单页的web-app自定义数据编辑器,它目前不需要任何服务器端代码来运行。
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.
该应用程序生成.tex文件作为输出。生成的文件使用memoir文档类,并执行一些难以在* TeX生态系统之外重现的复杂格式化内容。
I would like to let users download PDFs, not .tex files.
我想让用户下载PDF,而不是.tex文件。
I would prefer to generate these PDFs in browser, client-side. I would settle for server-side generation though.
我更愿意在浏览器,客户端生成这些PDF。我会满足于服务器端的生成。
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.
我试过texlive.js,但它没有回忆录。至于服务器端,我想避免从头开始设置tex到pdf生成管道 - 我觉得这将是一场安全噩梦。
Any advice?
1 个解决方案
#1
2
Basically you just have to compile your own version of texlive.js
.
基本上你只需要编译自己的texlive.js版本。
The instructions are here. Just add the memoir package.
说明在这里。只需添加回忆包。
Server side renderers do exist. However I would recommend to auto-generate a VM for every run. Like CI-tools do it.
服务器端渲染器确实存在。但是我建议每次运行都自动生成一个VM。像CI工具一样。
#1
2
Basically you just have to compile your own version of texlive.js
.
基本上你只需要编译自己的texlive.js版本。
The instructions are here. Just add the memoir package.
说明在这里。只需添加回忆包。
Server side renderers do exist. However I would recommend to auto-generate a VM for every run. Like CI-tools do it.
服务器端渲染器确实存在。但是我建议每次运行都自动生成一个VM。像CI工具一样。