News for hackers. Stuff that matters.
Re:1.5M PDFs in 25 Minutes by dzhiurgis on Thursday February 15, 2024 @05:23AM (#39381025)
> taking some 8 hours daily

> By converting our HTML templates into TEX formats and utilizing pdflatex for PDF generation, we observed a 10X increase in speed compared to the original Puppeteer way of generating

8*60/10 = 48 minutes. So this speedup alone would've been enough, wouldn't it?

Re:1.5M PDFs in 25 Minutes by tmnvix on Thursday February 15, 2024 @05:29AM (#39381060)
That would just be for the PDF generation. The 8 hours would also include the signing and emailing.
Re:1.5M PDFs in 25 Minutes by rbdixon on Thursday February 15, 2024 @11:49AM (#39384997)
I have a complex document generation tool based on latex. I’ve been working on replacing it with typst. Typst is simply 10x faster.

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.

Re:1.5M PDFs in 25 Minutes by singhrac on Thursday February 15, 2024 @09:51PM (#39392578)
They should absolutely switch to Typst for programmatically generating PDFs. pdflatex is notoriously slow.
Re:1.5M PDFs in 25 Minutes by tehbeard on Tuesday February 20, 2024 @05:01AM (#39439529)
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.