ThomasRinsma/pdftris

Tetris in a PDF (in most browsers)

Python

1,042

6 commits

updated Jan 12, 2025

See the code

README

Tetris in a PDF

Abusing PDF field objects to render a monochrome grid, combined with keystroke-entry in a text field to receive inputs.

More info here: https://th0mas.nl/2025/01/12/tetris-in-a-pdf/

This works in PDFium (Chromium-based browsers) and PDF.js (Firefox). Not tested for / intended to function in other engines (but you might be able modify this to work in Acrobat I guess).

ThomasRinsma/pdftris

Tetris in a PDF (in most browsers)

Python

1,042

6 commits

updated Jan 12, 2025

See the code

README

Tetris in a PDF

Abusing PDF field objects to render a monochrome grid, combined with keystroke-entry in a text field to receive inputs.

More info here: https://th0mas.nl/2025/01/12/tetris-in-a-pdf/

This works in PDFium (Chromium-based browsers) and PDF.js (Firefox). Not tested for / intended to function in other engines (but you might be able modify this to work in Acrobat I guess).

Significant stargazers

Cédric Luthi

1,185 followers · starred Jan 2025

wzy

204 followers · starred May 2025

Asuka Minato

629 followers · starred Jan 2025

Steven Tey

6,147 followers · starred Jan 2025