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 2 hours 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 2 hours 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 2 hours ago
pdf is a postscript container format, yes.
MonkderVierte@lemmy.zip 47 minutes 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 > …