Show HN: Tetris in a PDF
171–180 of 238 posts
Re: Show HN: Tetris in a PDF
#172Feel much safer!
Re: Show HN: Tetris in a PDF
#173That reminded to disable javascript in pdfjs that is used in firefox. Feel much safer!
Search for "pdfjs.enableScripting"
Set to false.
Re: Show HN: Tetris in a PDF
#174Re: Show HN: Tetris in a PDF
#175You 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…
Re: Show HN: Tetris in a PDF
#176This is horrifying, PDFs should not be able to execute code.
> PDFs should not be able to execute code Postscript is code (it's a stack machine), and PDFs are Postscript
PDFs have moved to native generation, due to the feature richness that has found its way into the specs.
Nevertheless you can still write PS and feed it into a Distiller (or sth. alike) and render the output.
Re: Show HN: Tetris in a PDF
#177Re: Show HN: Tetris in a PDF
#178That reminded to disable javascript in pdfjs that is used in firefox. Feel much safer!
Re: Show HN: Tetris in a PDF
#179I'm not sure what your process was for testing your scripts: but for me because there was no meaningful error output I had to incrementally build up my script line by line (which took forever.) So I thought I'd done well when I got my stuff working in Adobe + Firefox. I wonder if now everyone is going to add similar scripts to their resumes :p Doom will be next, maybe?