5 ms·
It would be great if that format were somehow Turing complete.
by cosinetau 10y ago
It would be great if that format were somehow Turing complete.
- nradov 10y agoWell you can run JavaScript inside a PDF, so technically it is Turing complete.
- hardwaresofton 10y agoFrom ~30s of searching, it looks like that's an Adobe Reader feature: https://stackoverflow.com/questions/9219807/using-javascript-inside-a-pdf https://stackoverflow.com/questions/9219807/using-javascript... My original comment was going to be "Who thought that was a good idea? Maybe there are reasons, but that sounds like a terrible idea at face value".
- NegativeLatency 10y agoI've seen some forms made with PDFs with js in them. A painful experience for sure.
- kccqzy 10y agoChrome's builtin PDF reader supports it. You can even find a PDF that uses JS to play a game of pong in Chrome.
- therein 10y agoWell, out of all the places that makes sense, it's Chrome after all. Either way, it sounds like a pretty bad idea to add this as a feature to Adobe Reader or somehow to the PDF spec. Especially since PDF remote code execution exploits happen relatively often.
- mhd 10y agoThat would be PostScript, of which PDF is pretty much the "compiled bytecode" version. I consider its abandonment a big loss for the industry. We could've gone PS++, but now we've got SGML++--++^&^!!1!!
- zurn 10y agoPDF viewers have lots of remote code execution vulnerabilities, so it is de facto Turing complete.