2 ms·
> PDF however includes (a subset of) Javascript, making it just as Turing complete. Not really, because the JavaScript is quite limited in what it can do (e.g.
by mkl 4y ago
> PDF however includes (a subset of) Javascript, making it just as Turing complete.
Not really, because the JavaScript is quite limited in what it can do (e.g. forms and interactive features). It can't produce text or graphical elements. A PDF reader can show view of a PDF that looks correct even if it doesn't implement any of the JavaScript features.
- jeroenhd 4y agoSupport will vary by viewer, but Chrome's built-in PDF viewer supports a subset of Javascript. It's enough to play Breakout inside a PDF: https://youtu.be/6rbJu10Telc?t=483 https://youtu.be/6rbJu10Telc?t=483