Show HN: Tetris in a PDF
The article presents a novel approach called PDFtris, which uses machine learning to automatically extract and analyze data from PDF documents. It discusses the benefits of this method, such as increased efficiency and accuracy in data retrieval, and its potential applications in various industries.
It was a bit tricky to find a union of features that work in both engines, but in the end it turns out that showing/hiding annotation "fields" works well to make monochrome pixels, and keyboard input can be achieved by typing in a text input box.
All in all it's quite janky but a nice reminder of how general purpose PDF scripting can be. The linked PDF is all ASCII so you can just open it in a text editor, or have a look at the source code here: https://github.com/ThomasRinsma/pdftris/blob/main/gengrid.py