7 ms·
I remember many years ago distributing PDFs as part of course material, that Adobe's official reader would open just fine, but Mac's built-in one wouldn't (and
by userbinator 6y ago
I remember many years ago distributing PDFs as part of course material, that Adobe's official reader would open just fine, but Mac's built-in one wouldn't (and simply fail with a useless "an error occurred" message.) Only a small subset of the class was using Macs and the built-in reader, so it took a while to discover. The problem eventually turned out to be some oddity in the way it treats whitespace[1], that Adobe and a few other readers were perfectly fine with, but not Preview.
[1] PDF is one of the strangest file formats I've worked with. It is a bizarre mix of binary and text, and some of the other design decisions are also perplexing.
- rubyn00bie 6y ago> PDF is one of the strangest file formats I've worked with. Do you by chance have a "definitely strangest" file formats? Just curious if something out there is vastly weirder, or more perplexing, than PDFs?
- agersant 6y agoI haven't worked with it myself but I heard Photoshop's PSD format is a good candidate.
- Someone 6y agohttps://github.com/gco/xee/blob/4fa3a6d609dd72b8493e52a68f316f7a02903276/XeePhotoshopLoader.m#L108 https://github.com/gco/xee/blob/4fa3a6d609dd72b8493e52a68f31...: “At this point, I'd like to take a moment to speak to you about the Adobe PSD format. PSD is not a good format. PSD is not even a bad format. Calling it such would be an insult to other bad formats, such as PCX or JPEG. No, PSD is an abysmal format.” (Followed by the real rant) I’m not sure it’s worse than PDF, though. PDF started life as a text-based postscript replacement that made it possible to index into postscript files, allowing one, for example, to render page 214 of a file without rendering the previous 213. When files grew too large, they added compression. Initially, that was base-85 (https://en.wikipedia.org/wiki/Ascii85 https://en.wikipedia.org/wiki/Ascii85), keeping the file text-based, but other compressors were added so that, now, the file is binary. They kept the index and all metadata in uncompressed ascii, though. Then, they layered zillions of different features (3D graphics, forms, JavaScript, font embedding, etc) on top of it.
- maximilianburke 6y agoYes, Adobe's PSD is definitely more weird and perplexing than PDF.