PCMag editors select and review products independently. If you buy through affiliate links, we may earn commissions, which help support our testing.

Even a PDF File Can Run Doom

A high school student found a way to run the classic PC game Doom from within a PDF file by leveraging the format's support for JavaScript and the Chromium browser engine.

 & Michael Kan Principal Reporter

Our team tests, rates, and reviews more than 1,500 products each year to help you make better buying decisions and get more from technology.

Our Expert
LOOK INSIDE PC LABS HOW WE TEST
65 EXPERTS
43 YEARS
41,500+ REVIEWS
(Credit: ading2210)

In the latest edition of “can it run Doom?” a high school student has discovered a way to port the classic PC game to a PDF file. 

Although PDF documents are known to simply host text and images, the file format can also run basic games, thanks to its support for JavaScript, according to a high school student named Allen who goes by the screenname "ading2210."

Taking advantage of this, Allen created the Doom PDF, which can run the game if it’s viewed in a Chromium-based browser, such as Google’s Chrome. The Doom PDF is available on Allen’s GitHub page and through a download. The 6.5MB document apparently contains a full version of Doom, which has been open-sourced for nonprofit use. 

The document also works by leveraging the Chromium browser’s PDF engine to run JavaScript. However, it does so in a limited format, rendering the game in monochrome using text characters rather than traditional video game pixels. 

“This port uses a separate text field for each row in the screen, then it sets their contents to various ASCII characters,” Allen wrote on his GitHub page. “I managed to get a 6 color monochrome output this way, which is enough for things to be legible in-game. The performance of this method is pretty poor but playable, since updating all of that text takes around 80ms per frame.”

A closer look at the rendering to the Doom PDF.
(ading2210)

The game also lacks audio. But despite the limitations, Allen found the Chromium browser engine does support button and text inputs for PDFs. As a result, the Doom PDF is playable through the built-in buttons in the document and via a text field, which can also read keyboard inputs. That said, the result isn’t easy to play due to the washed-out monochrome graphics. But it does prove once again that Doom can run on almost anything, including ebook readers, smart refrigerators, and even a pregnancy test. 

On his GitHub page, Allen also says he was inspired to create the Doom PDF by software developers who’ve also been experimenting with the PDF format, including using it to run Tetris.

About Our Expert

Michael Kan

Michael Kan

Principal Reporter

My Experience

I've been a journalist for over 15 years. I got my start as a schools and cities reporter in Kansas City and joined PCMag in 2017, where I cover satellite internet services, cybersecurity, PC hardware, and more. I'm currently based in San Francisco, but previously spent over five years in China, covering the country's technology sector.

Since 2020, I've covered the launch and explosive growth of SpaceX's Starlink satellite internet service, writing 600+ stories on availability and feature launches, but also the regulatory battles over the expansion of satellite constellations, fights with rival providers like AST SpaceMobile and Amazon, and the effort to expand into satellite-based mobile service. I've combed through FCC filings for the latest news and driven to remote corners of California to test Starlink's cellular service.

I also cover cyber threats, from ransomware gangs to the emergence of AI-based malware. In 2024 and 2025, the FTC forced Avast to pay consumers $16.5 million for secretly harvesting and selling their personal information to third-party clients, as revealed in my joint investigation with Motherboard.

I also cover the PC graphics card market. Pandemic-era shortages led me to camp out in front of a Best Buy to get an RTX 3000. I'm now following how the AI-driven memory shortage is impacting the entire consumer electronics market. I'm always eager to learn more, so please jump in the comments with feedback and send me tips.

The Best Tech I've Had:

  • My first video game console: a Nintendo Famicom
  • I loved my Sega Saturn despite PlayStation's popularity.
  • The iPod Video I received as a gift in college
  • Xbox 360 FTW
  • The Galaxy Nexus was the first smartphone I was proud to own.
  • The PC desktop I built in 2013, which still works to this day.

Read full bio