News for hackers. Stuff that matters.
Re:Minimal PDF by eru on Sunday July 09, 2017 @05:40AM (#14729032)
> Most PDF files do not look readable in a text editor. Compression, encryption, and embedded images are largely to blame. After removing these three components, one can more easily see that PDF is a human-readable document description language.

Of course, PDF is intentionally so weird: it was a move by Adobe because other companies were getting too good at handling postscript.

Embedding custom compression inside your format is seldom worth it: .ps.gz is usually smaller than pdf.

Re:Minimal PDF by izacus on Sunday July 09, 2017 @12:50PM (#14730595)
Hmm, in my experience vim is actually pretty good at showing PDFs since not a lot of them use compression for text and other streams.
Re:Minimal PDF by kccqzy on Sunday July 09, 2017 @06:35AM (#14729150)
It's hardly custom compression. It's just deflate and ZIP, IIRC.
Re:Minimal PDF by eru on Sunday July 09, 2017 @03:44PM (#14731320)
Yes, true. But it's build into the format, instead of transparently applied afterwards.
Re:Minimal PDF by kccqzy on Tuesday July 11, 2017 @04:11PM (#14747607)
The same could be said for PNG and many other common formats that use zlib.