linuxpdf

A demo that runs Linux inside a PDF file using a RISC-V emulator. It is a curiosity project showing what a PDF viewer can be made to do.

Share on XLicense: GPL-3.0

Overview

LinuxPDF is a demo that runs Linux inside a PDF file. It uses a RISC-V emulator based on TinyEMU and relies on the JavaScript support built into the PDF format, which modern browsers such as Chromium and Firefox implement in a limited form. It is a technical curiosity that shows how much a PDF viewer can be made to do.

Key features

  • Linux running inside a single PDF file
  • RISC-V emulator based on TinyEMU
  • Works through the JavaScript engine of browser PDF viewers
  • Related to the author's earlier DoomPDF project

Best for

People curious about unusual uses of file formats and emulation. It is a demo, not a practical tool.

Upstream
ading2210/linuxpdf
Fork on GitHub
Guo-astro/linuxpdf
Upstream stars
5.1k
Category
Documents, media and content
License
GPL-3.0
Forked
2025-11-25
Sync status
In syncLast synced 2026-09-29