May 8, 2026

PDFs: neat on top, nightmare below

The surprisingly complex journey to text-selectable client-side generated PDFs

Making a simple PDF turned into a full-blown internet meltdown about how cursed they really are

TLDR: SmallDocs tried to build a private, easy PDF download feature that still lets people copy text, and found it was far harder than it looked. Commenters weren’t shocked at all — they turned the thread into a roast of PDFs, calling them a cursed, messy format that developers hate wrestling with.

What should have been a boring little "download as PDF" feature turned into a surprisingly chaotic saga. The team behind SmallDocs wanted something that sounds simple to normal humans: make a PDF in the browser, keep private files off the server, make it easy to download, keep the text copyable, and make it actually look like the page. Instead, they discovered that PDFs are apparently one of the web’s oldest trapdoors. The comments instantly turned into a group therapy session for people who’ve been personally victimized by document formatting.

The loudest mood? "Oh, you sweet summer child, of course this was hard." One commenter called PDFs, printing, and email templates a classic "Pandora’s box" of software work, while another said engineers massively underestimate how messy visual design really is. That opened the floodgates for battle stories: one developer said they were months into trying to make copy-and-paste behave across apps and PDFs, only to find the whole thing was "much, much messier" than expected. Suddenly, this wasn’t just one startup’s headache — it was a public roast of the entire document ecosystem.

And then came the hot take cannon. One commenter basically declared PDFs should be for printing and scanned papers only, not books, papers, catalogs, or modern reading at all. Brutal. Others piled on with the digital equivalent of haunted-war-story nodding, joking that you don’t know true suffering until you’ve gone digging through PDF guts. The verdict from the crowd: PDFs may look tidy on the outside, but underneath, they’re pure chaos in a suit.

Key Points

  • The article argues that generating text-selectable, client-side PDFs from webpages is more difficult than it initially appears.
  • SmallDocs is a browser-based Markdown reader designed so file contents do not touch the company’s servers.
  • Existing off-the-shelf webpage-to-PDF solutions did not satisfy SmallDocs’ product requirements.
  • The required PDF constraints were client-side generation, standard download behavior, selectable and copyable text, and visual fidelity to rendered Markdown.
  • The post is presented as a description of the implementation journey and lessons learned from meeting those constraints.

Hottest takes

"one of those well known pandora boxes of web development" — josefrichter
"PDFs should be only for printing" — Worf
"much, much messier than I expected" — gobdovan
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.