💾 Archived View for yujiri.xyz › software › pdf.gmi captured on 2023-09-08 at 16:13:26. Gemini links have been rewritten to link to archived content
View Raw
More Information
⬅️ Previous capture (2023-04-26)
➡️ Next capture (2024-08-18)
🚧 View Differences
-=-=-=-=-=-=-
yujiri.xyz
Software
PDF must die
PDF is a blight and if you distribute PDFs you are making the world a worse place and more importantly, making me angry.
Some of the problems with PDF are stubborn archaisms, attempts to bring the quirks and limitations of physical paper into the digital world:
- The concept of pages. Digital things are *scrollable* so pages are just pointless seams in the scrolling, often at egregious places such as between a heading and its first paragraph.
- The paper sizes PDFs can have: A4, Letter, Legal, etc.
Now, you might say these things actually do make sense for the rare use cases of printing to physical paper (the vast majority of such cases are themselves stubborn archaism). But if that's your only use, you wouldn't want to *distribute* documents in this format (as is often done), you'd want to only convert them to PDF as part of the printing process.
Some of the problems are shared with the web:
- Font is controlled by the document instead of by the viewer.
- PDF is just overall insanely complex. Ever tried measuring the source code of a PDF viewer?
- PDFs can even contain Javascript! Talk about an inappropriate feature!
The Web is Evil
Other problems:
- Format is binary. You need dedicated software to read and edit PDFs. And most of that software doesn't have advanced functionality like searching by regular expression and extracting text for external transformation, which are standard in text editors. This also means PDFs don't work with `diff`.
- Has a built-in password protection feature. This is silly. If you want to send a file that only a certain person can read, you either send it over a secure channel or encrypt the file itself, which works on any type of file. There's no need for such a feature at the file format level.
- PDFs can contain fillable forms!... but software support for this is spotty. Actually this is also symptomatic of a stubborn archaism. If you want information from someone, ask them for the information. No reason you need them to provide it by returning an edited copy of the document, and if you really want them to return an edited copy of the document, they can return an edited copy of the document (so you don't need form fields).
Replacements
Honestly with half the PDFs I run into, there's no real reason they couldn't have been plain text files. Most of the remainder would be better off as HTML files - they reside on the web anyway so being a PDF is just a pointless bit of friction (or a lot of friction if the user's browser doesn't display PDFs automatically).
A common case I see PDFs is legal shit. Government needs to be abolished and even besides any consideration of ethics almost everything about all those institutions is stupid and broken and should be completely rethought.
Why you should be an anarchist