The surprisingly complex journey to text-selectable client-side generated PDFs (sdocs.dev)

15 points by FailMore a day ago

3 comments:

by josefrichter an hour ago

It’s not that surprising. It’s one of those well known pandora boxes of web development: email templates, PDFs, printing,…

by FailMore 34 minutes ago

Ah, I didn't know that. It's not something I had worked on before, and the file format is highly prevalent (so I assumed things would be easy), so it was surprising to me

by SirHumphrey a few seconds ago

Nothing about PDF is easy. Similarly to what once Tom Scott said about time zones, every time I must deal with PDFs I pray that PDF.js can be hacked in to doing it instead, otherwise I just don’t bother.

It’s on of the few examples when converting it in to picture and chucking it in a multimodal llm is a more sensible solution than trying to parse it.

Data from: Hacker News, provided by Hacker News (unofficial) API