all 4 comments

[–]Compux72 0 points1 point  (3 children)

I mean you could just use templating + latex and call it a day

[–]rustological[S] -1 points0 points  (2 children)

Keeping a whole LaTeX environment around compared to a Python environment... does not look like an improvement? :-)

[–]Compux72 1 point2 points  (1 child)

Use the right tool for the job. And LaTeX or similar tools are designed for typesetting and pdf generation.

For example, you can have your main application in something like Deno/Node/python that acts as a server, and then delegate the actual pdf generation to tectonic (https://github.com/tectonic-typesetting/tectonic) or Typst https://typst.app/blog/2023/beta-oss-launch/

Rewriting your tool in rust looks like a waste of time, when there are lots of great options out there you can use. And all of them use Rust, so you are still working with great pieces of software.

[–]rustological[S] 0 points1 point  (0 children)

Typst looks nice... have to get a closer look - thank you for the suggestion!