4 ms·
Maybe the author doesn't realize how difficult PDF is to work with. In PDF it's ambiguous whether any two spans of text belong together in the same sentence or
by pornel 5y ago
Maybe the author doesn't realize how difficult PDF is to work with. In PDF it's ambiguous whether any two spans of text belong together in the same sentence or paragraph. It can even be unclear where are spaces between words. PDF also allows "optimizing" font usage that makes text unreadable without OCR-ing the custom font. The messy hacks go on and on:
https://filingdb.com/b/pdf-text-extraction https://filingdb.com/b/pdf-text-extraction
OTOH it's totally possible to make a self-contained HTML page without using a JS framework of the day. It's going to be way easier to consume than a PDF.
- morsch 5y agoCase in point: copy-pasting a paragraph from his PDF-website adds line breaks everywhere. It also loses formatting (bold/italics) and the footnote superscript doesn't translate. PDF is an open standard, which is freely available2, and stable. It has a version number and many interoperable implementations including free and open source readers and editors. I think ease of copy-pasting is one of the coolest things about the document-centric roots of the web (along with the back button and hyperlinks; in other words, hypertext rules), although the modern web does break it (along with the back button and hyperlinks) in many places, so I can see where he is coming from. PDFs aren't the answer, though.
- lifthrasiir 5y ago> OTOH it's totally possible to make a self-contained HTML page without using a JS framework of the day. I'm basically in agreement, but the author has a good point that PDF is obviously self-contained and self-contained HTML pages are not necessarily distinguishable from those that aren't. Perhaps we might have to revisit MHTML or embrace Web bundles as an alternative to PDF.
- dtech 5y agoIt's not even JS. I'd argue a HTML + inline JS page is a lot more self-contained than one with external images, videos and fonts. Note that PDFs can contain JS too.
- Digit-Al 5y ago> Note that PDFs can contain JS too. That's why he says to use PDF/A, which can't contain JS.
- imglorp 5y ago> Note that PDFs can contain JS too. Wait, why?!? When does it render? Who's supposed to have a js engine to do that? What version? How does it load dependencies? Is HTML and DOM carried along with it? So many questions.
- maskros 5y agoWhy? To validate form fields. Who? The PDF viewer. When? Since about 2000 in PDF format version 1.3. Dependencies? Hah, no such luck. You're stuck with ES5 and Adobe's crufty JS library. There is no HTML and DOM, there are however some pretty thorough PDF document bindings.
- native_samples 5y agoWhy - because scripting is useful. A big use of PDFs is translating paper forms into digital forms without needing to make a web app out of them. JS is used for client side validation, same reason it was put into browsers. Acrobat can handle this along with many other features that most PDF readers can't handle properly. Basically in the PDF world, Acrobat Reader is Chrome and everything else is, like, Konqueror or something. Don't be fooled into thinking PDF is a small spec. It's not.
- cxr 5y agoYou want PWP <https://blog.jonudell.net/2016/10/15/from-pdf-to-pwp-a-vision-for-compound-web-documents/ https://blog.jonudell.net/2016/10/15/from-pdf-to-pwp-a-visio...> (Later aborted, and the group's work was rolled into EPUB3. As you note, there remains a genuine need for it.) On the other hand, there's nothing stopping you from using a double-barrelled file extension for denoting this sort of thing, e.g. "memex-opus.pub.html"; so long as it ends with something recognizable, double-clicking should still open it in the browser across all the usual platforms, AFAIK. (I'm fond of using "xyzzy.app.htm" myself to take advantage of this trick for distributing simple, self-contained programs that are designed run in the browser.)
- 7sidedmarble 5y agoThis is what PWAs are kind of for.
- IshKebab 5y agoOr... AMP? But no, Google made that so it must be a bad idea.
- pmlnr 5y agoMHTML, which is basically HTML email.
- dalbasal 5y agoThe author addresses this: “We choose to switch to PDF in this decade, not because it easy, but because it is hard” – John F. Warnock, September 12th 1962" The author is obviously making a statements, exploring ideas... not searching for an actual solution to his use case.
- rkachowski 5y agoIs this a comical misquote or is the PDF format actually 60 years old?
- wccrawford 5y agoIt's a comical, deliberate misquote.
- SethMurphy 5y agoComical misquote, "Switch to PDF" replaced "Go to the Moon".
- dalbasal 5y agoIts comical, but links to the founder of Adobe. IDK what the date alludes to.
- coldtea 5y agoIt's about 30 years old - it's creator however is said person. The actual quote was from JFK iirc regarding the Apollo missions...
- 5y ago
- Recursing 5y agoFrom the PDF > “But it’s just as easy to write self-contained HTML pages!” > Sure, but if you’re going to hide CTF forensics challenges in your publication, a coverdisk allows you to do it in style! I think it's not meant to be taken extremely seriously
- signal11 5y ago> it's totally possible to make a self-contained HTML page without using a JS framework of the day. It's going to be way easier to consume than a PDF. Completely agree. For instance, NASA's APOD site[1] is a good example of something that'd be nontrivial using both an offline PDF and modern lightweight alternatives like Gemini, but works really well even without fancy modern design. Under 300kB including the image (HTML's under 6 kB) before gzipping. [1] https://apod.nasa.gov/apod/astropix.html https://apod.nasa.gov/apod/astropix.html
- jl6 5y agoHello. Original author here. I do realize how ugly PDFs are to work with (I wrote my own PDF/A generator for issue 2[2]). This is a Tagged PDF though, so you can extract text using standard tools. To understand the mindset, have a read of the Gemini FAQ[0], specifically the answer to why not use a subset of HTML - and then read Issue 2[2] which is a hybrid Gemini+PDF polyglot, for people who don't like reading PDFs, which is apparently everyone on this thread :) Issue 1[1] also moves beyond PDF, to try addressing some of the accessibility shortcomings by (a) prepending the content as plain text, and (b) recording myself reading the whole thing out and arranging the file as a polyglot MP3 and PDF file that can be played in an audio player as well as viewed in a PDF reader as well as a text editor. A mini-FAQ to address some points elsewhere in the thread: * No, it's not going to replace your blog or the web in general. * Yes, it's an experimental art project / longitudinal CTF forensics tournament / weirdo personal blog. * Yes, I'm serious anyway. [0] https://gemini.circumlunar.space/docs/faq.gmi https://gemini.circumlunar.space/docs/faq.gmi [1] https://lab6.com/1 https://lab6.com/1 [2] https://lab6.com/2 https://lab6.com/2
- ReactiveJelly 5y ago> The problem is that deciding upon a strictly limited subset of HTTP and HTML, slapping a label on it and calling it a day would do almost nothing to create a clearly demarcated space where people can go to consume only that kind of content in only that kind of way. It's impossible to know in advance whether what's on the other side of a https:// https:// URL will be within the subset or outside it. It's very tedious to verify that a website claiming to use only the subset actually does, as many of the features we want to avoid are invisible (but not harmless!) to the user But I don't really know that your PDF website doesn't use some evil invisible PDF feature. And I have to use a special Gemini browser to access Gemini pages. (Since an HTTPS bridge misses the point) So why not use Dillo as my "Sane subset of HTML"? It is not hard to hand-write HTML that looks great in Lynx, Dillo, and Firefox.
- pmlnr 5y ago> It is not hard to hand-write HTML that looks great in Lynx, Dillo, and Firefox. Actually, it is. I love Dillo, but it's very limited. I like to make my images "fluid" using max-width and max-height attributes, and Dillo will not support those in any foreseeable future. But again, I still love Dillo.