3 ms·
> PDFs technically are code PDF is code only in the same sense as HTML is. You can embed JS in PDFs, but that's it. I don't believe Evince supports JS at the
by jwilk 8y ago
> PDFs technically are code
PDF is code only in the same sense as HTML is. You can embed JS in PDFs, but that's it.
I don't believe Evince supports JS at the moment:
https://gitlab.gnome.org/GNOME/evince/issues/24 https://gitlab.gnome.org/GNOME/evince/issues/24
- dozzie 8y ago>> PDFs technically are code > PDF is code only in the same sense as HTML is. Wrong comparison. PDF is code only in the same sense as LaTeX is. PDF is based on PostScript, just as LaTeX is a set of macros on top of TeX, and we all know TeX and PostScript are programming languages and are Turing complete (look for a web server written in PostScript).
- jwilk 8y agoPostScript is indeed a Turing-complete language. It's a common misconception that PDF is an extension of PostScript. PDF is only loosely based on PostScript. In particular, it doesn't support any control flow, like conditions or loops. It is not a programming language, unless you count embedded JavaScript.