4 ms·
Interestingly, PDFs actually do contain an embedded programming language in them, a subset of PostScript. [1] PostScript, meanwhile, is actually Turing complete
by xymostech 12y ago
Interestingly, PDFs actually do contain an embedded programming language in them, a subset of PostScript. [1] PostScript, meanwhile, is actually Turing complete with conditionals and loop structures inside of it. [2] I'd argue that makes PDFs a whole lot more programming language-y than CSS or XML.
[1]: http://en.wikipedia.org/wiki/PDF#Technical_foundations http://en.wikipedia.org/wiki/PDF#Technical_foundations
[2]: http://en.wikipedia.org/wiki/PostScript#The_language http://en.wikipedia.org/wiki/PostScript#The_language
- userbinator 12y ago"PDFscript" (as I like to call it) is not Turing complete. It's more similar to SVG in terms of capability. From the PDF spec: "To simplify the processing of content streams, PDF does not include common programming language features such as procedures, variable, and control constructs."