When you purchase through links on our site, we may earn an affiliate commission.Heres how it works.
When you think of PDFs, you probably think about work documents, contracts, and static images.
Thomas Rinsma, a security analyst, created a fully functional version of Tetris within a PDF file.

You can play a version of Tetris within a PDF file, though you shouldn’t expect smooth gameplay.
you’ve got the option to play Tetris within a PDF by openingthis filein a compatible online window.
Sadly for mobile gamers, pdftris only works within desktop browsers at the moment.
Here’s a working game of Tetris inside a PDF.

Even has keyboard controls (by typing WASD in an input box).
pic.twitter.com/n4CPcitzz9January 5, 2025
The game does not exactly run smoothly, which is hardly a surprise.
The game ran better within Chrome but showed some black lines across my screen.

But smooth gameplay isn’t what a project like pdftris is about.
Getting Tetris within a PDF was a fun project that also presented a challenge to overcome.
Both PDFium, Chromium’s PDF reader, and PDF.js, Firefox’s PDF reader, use different engines.

In case you were wondering, yes, aPDF can be used to run Doom.
Rinsma managed to get the classic game working within a PDF after some tinkering.












