Playable where? It doesn't work in the Adobe Chrome PDF viewer, or in Preview.
Show HN: Tetris in a PDF
81–90 of 238 posts
Re: Show HN: Tetris in a PDF
#82You glorious bastard, what a cool project! This is already a contender for most hacker project of the year :-) (below is not serious) I would advise people against using this in production though because it's still missing some critical features. For example: 1. The Javascript stops working when printed to physical paper. The resulting paper just has a static image and the controls no longer work. 2. It doesn't work…
> The Javascript stops working when printed to physical paper. The resulting paper just has a static image and the controls no longer work. Science fiction tells us this is only temporary. Print away, those papers will turn into magic in just a few decades!
Re: Show HN: Tetris in a PDF
#83This is a good reminder for why to not download random PDFs. One of the mechanisms of the Pegasus spyware was emulating a computer inside a PDF. https://en.wikipedia.org/wiki/Pegasus_(spyware)#Vulnerabilit...
The vulnerability was in images parsing, and exploit was distributed by sending an imessage to the target. So don't open any images, and don't read imessages. They are also known to use browser exploits, so don't visit random websites. That was sarcasm, in case it's not clear over the internet. Telling people to avoid "suspicious" pdfs/websites is common but ultimately not very useful advice. The real takeaway is: do…
Nothing you do will guarantee that the state won't come after you.
Re: Show HN: Tetris in a PDF
#84Playable where? It doesn't work in the Adobe Chrome PDF viewer, or in Preview.
Re: Show HN: Tetris in a PDF
#85You glorious bastard, what a cool project! This is already a contender for most hacker project of the year :-) (below is not serious) I would advise people against using this in production though because it's still missing some critical features. For example: 1. The Javascript stops working when printed to physical paper. The resulting paper just has a static image and the controls no longer work. 2. It doesn't work…
"The Javascript stops working when printed to physical paper. The resulting paper just has a static image and the controls no longer work." -- this comment made my me laugh/choke on my coffee and I have no regrets.
Re: Show HN: Tetris in a PDF
#86Re: Show HN: Tetris in a PDF
#87Earlier quoted context omitted.
i recently discovered that the Canadian government depends on this for some fillable forms, because it shows a message at the top that says "JavaScript is disabled" and all the boxes show errors. i couldn't get it to work on Linux and had to dust off a Windows machine (and it still didn't work in firefox, it needed acrobat reader).
I have faced this exact problem with Canadian govt forms. Evince doesn't support them. They are so specific about only adobe acrobat to fill out the forms. I can open them in firefox but can't update them properly The only option is to use my barely hanging on 10-yr old windows machine. Let's hope that eventually they move on to a simpler web form.
Re: Show HN: Tetris in a PDF
#88Not only web but majorly all OS pdf renderers support JS. It used to be a major source of malware long back.
Re: Show HN: Tetris in a PDF
#89Earlier quoted context omitted.
"The Javascript stops working when printed to physical paper. The resulting paper just has a static image and the controls no longer work." -- this comment made my me laugh/choke on my coffee and I have no regrets.
You must have never browsed IT support tickets. Oh the horrors...
Re: Show HN: Tetris in a PDF
#90which is why i am commenting to check it out later.
since postscript is also a language that it literally runs to render, would it also be possible to use postscript to make interactive elements?