Strangely, this kinda makes sense. PDF is based on PostScript, which is the file type that gets sent to printers. It’s just skipping the final “send to printer” part and sends it to a file instead.
A fascinating thing (in a scary way) is that PostScript is technically a Turing-complete programming language. When a document is printed using PostScript, your computer generates a script that the printer runs in order to produce the document.
PDF is essentially “the safe parts” of PostScript, with all the dynamic parts removed. PDFs are statically laid out when they’re created, rather than having to run arbitrary code to lay them out like PostScript does.
For printing, PCL has somewhat taken over, and it’s less scary (it just has preset commands rather than allowing arbitrary code in a full programming language with loops, functions, logic, etc), but PostScript is still used today for higher-end printers and print jobs.
lime@feddit.nu 3 weeks ago
pdf is a print and typesetting format for printers. what’s crazy is that we’re using it for something other than that.
floquant@lemmy.dbzer0.com 3 weeks ago
It’s not? The p stands for portable, which implies a digital format for software use. Maybe you’re thinking of postscript?
lime@feddit.nu 3 weeks ago
pdf is a postscript container format, yes.
MonkderVierte@lemmy.zip 3 weeks ago
History of PDF is basically: We need a standard format to get print jobs over there > Postscript > let’s add feature X > also feature y > make it do thing too! > uh oh, it’s gotten too powerful, security galore > reboot and slim it down > PDF > let’s add feature X > also feature y > …
pinball_wizard@lemmy.zip 3 weeks ago
Yes. PDF is an embrace - extended - extinguish job done on PostScript.
tetris11@feddit.uk 3 weeks ago
I feel like websites tried to do the same with seperating CSS from the DOM, but then the web said, actually how about we invent webasm anyway…
Hundun@beehaw.org 3 weeks ago
Personally, I think in dealing with text documents, we should only respect:
Everything else is mental illness.
Hundun@beehaw.org 3 weeks ago
One could say that PDFs allow unique copy protection features, which is true. However, one mustn’t forget that copy protection is yet to deserve it’s right to exist at all.
ArsonButCute@lemmy.dbzer0.com 3 weeks ago
I love markdown. I take all my work notes in markdown on vim and my coworkers look at me like I have 3 heads.
I then view them in a markdown viewer and I get to interact with the checklists I made 😼
AmyAye@nord.pub 3 weeks ago
I want to be able to make a document without page breaks.
No one prints shit, I just want an endless scroll in Word Docs.
Laser@feddit.org 3 weeks ago
I’m a millenial (maybe even an older one but I won’t admit to that) and I just love typst.
Markdown is just content, but as soon as you want actual layouting, you’re in for trouble; sure you can post-process in pandoc and apply the result to some template, but you’re probably creating an abomination in the process. Oh, and I hate creating slightly bigger tables there. One of your columns got larger? Better adjust all your horizontal lines (at least for grid tables), which might be a pandoc markdown only feature. Yeah, there isn’t one single markdown, but multiple flavors: glukhov.org/…/gfm-vs-commonmark-vs-pandoc-markdow…
LaTeX? Probably still the king of exact typesetting, but it has a lot of issues:
Though at least nowadays, you have options for creating accessible PDFs (I’m not a big fan of the idea myself, but there are environments where that support is mandatory, e.g. government contracting)
typst? I wrote my first bigger project in typst that did much more than I could ever do in LaTeX (generation of documentation from OpenAPI spec files) and I had way fewer issues than for LaTeX projects of lower complexity. Yeah there are still some areas that need improvement, but all in all it’s a breeze. With tinymist, writing stuff is just so nice, no waiting for your document to compile for 40 seconds, no, you get an instant preview, or a helpful error message.
I was a bit of a LaTeX guy but I haven’t touched it since I learned typst.
RickyRigatoni@piefed.zip 3 weeks ago
You forgot women.
BillionaireStew@lemmy.world 3 weeks ago
Almost as crazy as Adobe continuing to exist decades after purchasing Macromedia when it could not compete with Macromedia’s software on merit.
Neverclear@lemmy.dbzer0.com 3 weeks ago
pocorgtfo has some pretty cool/scary examples of what a pdf is capable of hiding. One issue actually starts with a boot sector that is a playble game of tetris
lime@feddit.nu 3 weeks ago
that’s what happens when any file with a valid pdf header in it anywhere is a valid pdf…