Live data from Hacker News

Show HN: Tetris in a PDF

th0mas.nl

231–238 of 238 posts

Re: Show HN: Tetris in a PDF

#231
post #161

Earlier quoted context omitted.

Acrobat 9.5 works fine on Linux, if a little slow. This Tetris game makes it crash though.

Oh, thanks, that's good to hear! Edit: only now I see that's also from 2009 with updates into 2013. Do you where one can easily download the latest patched version?

In my case I install it from flathub.org (works from any distro):

https://flathub.org/apps/com.adobe.Reader

Re: Show HN: Tetris in a PDF

#232

I'm wondering if running Doom in PDF files might be achievable, or is that a step too far away?

Probably in the domain of technically possible but good luck trying to get it to run fast enough and with little enough memory that the PDF engine doesn't crash.

It's definitely achievable, and it even runs with a playable framerate: https://news.ycombinator.com/item?id=42678754

Re: Show HN: Tetris in a PDF

#233

Earlier quoted context omitted.

>> I do wish I did pay some attention to CAD now. I want a 3D printer and have no idea how to design objects for it. Get Solvespace: https://solvespace.com/index.pl Do the tutorials. If/when you outgrow it, the concepts will carry over to FreeCAD which otherwise has a steeper learning curve but has more capabilities.

An aside, but I found FreeCAD to be a real pain. The dependency tracking across sketches is really quite horrid. If I have sketch2 linked to sketch1, and I delete a line in sketch1, it will arbitrarily reassign all the sketch2->sketch1 dependencies. Maybe they fixed that since I've used it, but I've transferred over to Onshape for all my hobby stuff... EDIT: looks like they finally addressed the topological naming pr…

Solvespace handles topological naming almost flawlessly. Even in a repeat group, the first and last copies of a sketch are "named" first and last rather than given a number. This is because constraints are often applied to those copies. This way they won't break if you go back and change the number of copies.

Re: Show HN: Tetris in a PDF

#236
post #215
post #7

Not just web browsers, Acrobat (and probably other PDF readers) have supported executing Javascript in PDFs for decades.

why??? for what possible secure white hat reason could you want to run js in pdfs??!? is nobody sane running the pdf org?

Yeah, I agree.

I first met an interactive PDF when filing a form for some state matter (I live in Italy).

I thought that it was over-engineered and dangerous.

Also, this kind of things tend to gratuitously exclude non-mainstream (especially free) software.

Re: Show HN: Tetris in a PDF

#237

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

> Doom will be next, maybe?

Prescient! (but I couldn't get it to work)

https://80.lv/articles/you-can-now-run-doom-in-a-pdf-file/

https://doompdf.pages.dev/doom.pdf

Re: Show HN: Tetris in a PDF

#238

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…

thank god you warned the last 2 comments weren't serious
Post reply on HN