They should absolutely switch to Typst for programmatically generating PDFs. pdflatex is notoriously slow.
Gave this a look at, as PDF generation has been the bane of web app development for us.
This looks much more reasonable than fpdf's bare bones nature, or wkhtmltopdf / snappy / puppeteer needing esoteric, old CSS specs and having a lot of quirks because of it.
Particularly happy at how it can swap page size as needed.
Crazy example of how fast typst is: 30”x30” document with 2600 tiny images generates a 40MB PDF in under a half second.
Check typst out. It’s amazing. Not quite latex equivalent in some ways but moving fast on an amazing foundation.