The surprisingly complex journey to text-selectable client-side generated PDFs
1–10 of 66 posts
Re: The surprisingly complex journey to text-selectable client-side generated PDFs
#2Re: The surprisingly complex journey to text-selectable client-side generated PDFs
#3It’s not that surprising. It’s one of those well known pandora boxes of web development: email templates, PDFs, printing,…
Re: The surprisingly complex journey to text-selectable client-side generated PDFs
#4It’s not that surprising. It’s one of those well known pandora boxes of web development: email templates, PDFs, printing,…
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
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.
Re: The surprisingly complex journey to text-selectable client-side generated PDFs
#5Re: The surprisingly complex journey to text-selectable client-side generated PDFs
#6Re: The surprisingly complex journey to text-selectable client-side generated PDFs
#7I months into building a pasteboard transform library that normalises VS Code, Google Docs, PDFs and a bunch of Chromium apps provider-specific data so I can start pasting everything everywhere exactly how I want it. It's much, much messier than I expected.
Apps put different UTTypes on the pasteboard that are not really compatible with each other. Usually there's a plain text fallback, then rich text/HTML, then provider-specific data. You show how much insane work is needed just to make text selectable with glyph mappings, layout, links, code blocks, rendered styles, etc. But once you copy from that PDF, most viewers still only expose raw text, and often broken raw text at that...
Re: The surprisingly complex journey to text-selectable client-side generated PDFs
#8Software engineers drastically underestimates GUI - Web layouts, mobile app layouts, and even PDF layouts are non-trivial pieces of work to get right in all circumstances.
Re: The surprisingly complex journey to text-selectable client-side generated PDFs
#9Thanks, this puts into perspective why copy-paste from PDFs is so bad. I months into building a pasteboard transform library that normalises VS Code, Google Docs, PDFs and a bunch of Chromium apps provider-specific data so I can start pasting everything everywhere exactly how I want it. It's much, much messier than I expected. Apps put different UTTypes on the pasteboard that are not really compatible with each other…
Re: The surprisingly complex journey to text-selectable client-side generated PDFs
#10We have responsive and open standards like HTML and EPUB (zipped XTML) and they work great. arXiv has HTML papers, and libgen and anna's archive often have EPUB versions of books. The issue for me with EPUB is the lack of good readers now.