Show HN: Tetris in a PDF
131–140 of 238 posts
Re: Show HN: Tetris in a PDF
#132Earlier quoted context omitted.
But can your PDF run an AI agent?
In my opinion the question isn’t so much “if” but rather “when”. When will AI research and hardware capabilities reach a point that it’s practical to embed something like that into a regular document? We’ve already seen proof of concept LLMs embedded into OpenType fonts. I guess the other question is then “what capabilities would these AI agents have?” You’d hope just permission to present within that document. But t…
https://pdfium.googlesource.com/pdfium/+/refs/heads/main/fpd...
> // Use interpreted JS only to avoid RWX pages in our address space. Also, --jitless implies --no-expose-wasm, which reduce exposure since no PDF should contain web assembly.
> return "--jitless";
Re: Show HN: Tetris in a PDF
#133Earlier 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
#134This 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...
A tetris PDF could be in a 1 pixel iframe right on this page and you'd never know it. So it doesn't require any user action to download one.
Re: Show HN: Tetris in a PDF
#135Re: Show HN: Tetris in a PDF
#136This is horrifying, PDFs should not be able to execute code.
Re: Show HN: Tetris in a PDF
#137Re: Show HN: Tetris in a PDF
#138https://www.nutrient.io/blog/how-to-program-a-calculator-pdf... See here for how we did a calculator in a PDF
Re: Show HN: Tetris in a PDF
#139Earlier quoted context omitted.
AI agents run in isolated VMs, but PDFs have been out here running in the open for 30 years!
But can your PDF run an AI agent?
Re: Show HN: Tetris in a PDF
#140Earlier quoted context omitted.
AI agents run in isolated VMs, but PDFs have been out here running in the open for 30 years!
But can your PDF run an AI agent?
Oh it's so much worse than that. Your font can run an AI agent.
Llama.ttf: A font which is also an LLM -- https://news.ycombinator.com/item?id=40766791