!!Con 2020 - Playing Breakout… inside a PDF!! by Omar Rizwan
Channel:!!Con · Length:8:15 · Published:2020-05-28 · Views:4168
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
- What the heck is the event loop anyway? | Philip Roberts | JSConf EU · JSConf · 26:52
- Rich Harris - Rethinking reactivity · You Gotta Love Frontend · 36:45
- Behind the Scenes of iOS Security · Black Hat · 51:31
- The Problem with Time & Timezones - Computerphile · Computerphile · 10:12
- Why Electronic Voting Is Still A Bad Idea · Tom Scott · 12:00
- Crockford on JavaScript - Volume 1: The Early Years · YUI Library · 1:42:08
- RailsConf 2016 - Turbolinks 5: I Can’t Believe It’s Not Native! by Sam Stephenson · Confreaks · 37:37
- USENIX Security '18-Q: Why Do Keynote Speakers Keep Suggesting That Improving Security Is Possible? · USENIX · 51:22
- Defcon 18 Changing threats to privacy Moxie Marlinspike Part · killab66661 · 42:50
- JavaScript: The Good Parts · Google TechTalks · 1:03:47
- 28c3: The Science of Insecurity · 28c3 · 59:23
- Pete Hunt: React: Rethinking best practices -- JSConf EU · JSConf · 29:31
- DEF CON 25 - John Sotos - Genetic Diseases to Guide Digital Hacks of the Human Genome · DEFCONConference · 49:47
- Elevator Hacking: From the Pit to the Penthouse · DeviantOllam · 1:55:53
- Dan Abramov - Live React: Hot Reloading with Time Travel at react-europe 2015 · ReactEurope · 30:40
- Compiling C to printable x86, to make an executable research paper · suckerpinch · 25:41