!!Con 2020 - Playing Breakout… inside a PDF!! by Omar Rizwan

Channel:!!Con · Length:8:15 · Published:2020-05-28 · Views:4168

Watch on YouTube

Summary

Omar Rizwan's short !!Con talk about writing a Breakout game in JavaScript that runs inside a PDF. It explores the surprisingly large PDF specification, including its scripting support.

Why HN recommends it

Cited as the fun, surprising example of how much a PDF can do, and the talk behind the Horrifying PDF Experiments repo.

the repo's < > readme points to the talk given on this — HN, 2024

Web development · Software (other) · Security & hacking

Subtitles (excerpt)

cool so I'm gonna start by I'm gonna talk about a project that I did a few years ago where I made this PDF that you load up in your Chrome browser and you can play breakout and slide up so it's a totally normal PDF totally normal Chrome browser and you just open it up and things start moving I'm not a great breakout player so I'm gonna talk about like how that works and I'm going to talk about some of the hacks I had to do to get it to work so I want to start out by talking a bit about the PDF format because you may not actually know that much about it I if you're like me you've probably read a bunch of PDFs but you may not know too much about how to make a PDF and it turns out that PDFs are actually really simple like this right here this this text here that basically fits on one editor screen is a complete PDF you can kind of just type it in and save it and you'll get something that looks like this so it's not so PDF is not a super complicated format at heart but over the years adobe has has added like layers and layers and layers of stuff that you can embed inside PDFs you know you can put flash files into a PDF you can put chunks of web pages into a PDF you can put functions inside a PDF like if

On Hacker News

the repo's < [LINK] > readme points to the talk given on this: [VIDEO] the 2021 submission of the repo got some lively commentary [LINK] — mdaniel, 2024-06
Support will vary by viewer, but Chrome's built-in PDF viewer supports a subset of Javascript. It's enough to play Breakout inside a PDF: [VIDEO] — jeroenhd, 2023-03
> PDF forms now support JavaScript embedded in PDF files. Some PDF forms use JavaScript for validation and other interactive features. As far as I can tell I still can't play breakout in a PDF in Firefox though (and I think that's for the better) [0] [LINK] [1] [VIDEO] — vanderZwan, 2021-04

Related videos