Live data from Hacker News

The story of the PDF (2018)

vice.com

21–30 of 97 posts

Re: The story of the PDF (2018)

#21
post #11

It is a pity that DjVu[0] wasn't even mentioned; an open format that was superior to PDF in many ways[1], including better optimization, efficient storage. [0] http://djvu.org/ [1] https://en.wikipedia.org/wiki/DjVu

DjVu is a great format for scanned images, which is its primary use-case, but I'm not seeing where you can have actual, selectable text in a DjVu document, like you can with PDF and PostScript. It seems like it's all images.

Re: The story of the PDF (2018)

#22
post #6

I'm thankful PDF won, because otherwise I think it would have been Microsoft Word. There was a time when papers, books, resumes, contracts, etc. almost always came as Word. Does anyone else remember getting a book as preface.doc, chap1.doc, chap1a.doc, chap2.doc, subchap2a2.doc, and so on, and a mess of jpegs and gifs and trying to figure out how it had to be assembled, and discovering something was missing, or that…

> If for example a credit card company changes one word in their terms & conditions PDF, it seems like 90% of document changes at the binary level.

Convert to text with: pdftotext -layout

Re: The story of the PDF (2018)

#23
post #6

I'm thankful PDF won, because otherwise I think it would have been Microsoft Word. There was a time when papers, books, resumes, contracts, etc. almost always came as Word. Does anyone else remember getting a book as preface.doc, chap1.doc, chap1a.doc, chap2.doc, subchap2a2.doc, and so on, and a mess of jpegs and gifs and trying to figure out how it had to be assembled, and discovering something was missing, or that…

PDF objects within the file are usually compressed. That means if anything changes, the whole compressed binary blob changes.

Other than compression and such encodings, PDF files are actually text files, with a drawing model largely based on PostScript but without the programming. If you want to diff them, use `mutool clean -d -a` to first turn them into pure ASCII text.

That said, since it's a "baked" layout format, if one word pushes the rest of the text forward, everything after that will show up with changed coordinates. It's closer to a vector image format like SVG than a markup format like HTML or ODF.

There are also things like font subsetting, where removing a word that was the only use of a character, or adding a word that uses a new character, might change the font data to add/remove those characters.

Re: The story of the PDF (2018)

#24
post #4

Earlier quoted context omitted.

https://en.wikipedia.org/wiki/PDF It became open source in 2008 so it’s definitely here to stay.

It is a format that doesn't know what it wants to be. Is it an image? Text? Vector graphics? Electronic forms? How about all of the above.

[deleted]

Re: The story of the PDF (2018)

#25
The only problems with PDFs are that they are misused.

They are amazing at exactly reproducing a printed document, and far superior to a jpg at doing that because it is vector, searchable, can contain links, etc

If you've ever tried to read a math textbook in ebook format on a ipad then switched to pdf, you can see how pdf shines.

Re: The story of the PDF (2018)

#26
One issue I have with the "archival" aspect of pdfs discussed in the article, is you are archiving a picture of something, not the blueprint.

So much pain and time will be spend on machine learning models extracting semantic meaning from pdfs that could have been saved if archivers were to also save source formats or machine readable data. But for some reason, publishers have an allergy to submitting those so its a lost cause.

Re: The story of the PDF (2018)

#28
In the early summer of 1995, the Mac community was fairly small. But it dominated the publishing industry.

At the conference for Macintosh network administrators, we were all super excited about this World Wide Web thing. The potential for a while new paradigm for information publishing, from creation to distribution, for in-house corporate operations or mass media companies, it was a new medium that would make paper obsolete.

The Adobe reps were visibly exasperated by all this. They had solved this problem, years ago. You could click on any element of a PDF, and go to a different place in the current document, or open any other file on your computer. Powerful tools for graphical interactive PDF creation and editing. Even the ability to trigger AppleScript actions in response to mouse or keyboard events...

The Web, by comparison, was primitive and naive. Why was it getting all the attention?

Re: The story of the PDF (2018)

#29
post #6

I'm thankful PDF won, because otherwise I think it would have been Microsoft Word. There was a time when papers, books, resumes, contracts, etc. almost always came as Word. Does anyone else remember getting a book as preface.doc, chap1.doc, chap1a.doc, chap2.doc, subchap2a2.doc, and so on, and a mess of jpegs and gifs and trying to figure out how it had to be assembled, and discovering something was missing, or that…

>I'm thankful PDF won, because otherwise I think it would have been Microsoft Word. Well, probably Microsoft XPS, which was actually a fairly well designed format. But Microsoft didn't have the fight in them to really push it as a competitor to PDF. In part, I suspect b/c it's hard to justify investing a lot of money in your competing document standard as there is not much revenue you can derive from it. As of 2018,…

Interestingly it still exists inside the print spooler, it's the default spool format for modern printer drivers.

Re: The story of the PDF (2018)

#30
post #6

I'm thankful PDF won, because otherwise I think it would have been Microsoft Word. There was a time when papers, books, resumes, contracts, etc. almost always came as Word. Does anyone else remember getting a book as preface.doc, chap1.doc, chap1a.doc, chap2.doc, subchap2a2.doc, and so on, and a mess of jpegs and gifs and trying to figure out how it had to be assembled, and discovering something was missing, or that…

The main thing for me is I don't need the originating application or fonts. I have twenty year old PDF files created by some long gone software that I can still read.
Post reply on HN