Live data from Hacker News

Show HN: Tetris in a PDF

th0mas.nl

171–180 of 238 posts

Re: Show HN: Tetris in a PDF

#175

You 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…

Regarding #1: Your printer is just too slow. Try finding a printing company near you with a web feed machine, that should help with your FPS.

Re: Show HN: Tetris in a PDF

#176
post #68

This 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 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

#179
Well OP, you have definitely made me reconsider my assumptions about PDFium. I had assumed that JS didn't work altogether in Chrome. But clearly there's just bugs in the code I wrote. You've inspired me to have another crack at solving it. But definitely when the time is right. It's going to be a lot of hair pulling, I can see that now.

I'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?

Post reply on HN