Story
Anticipating the boards for my paper tape reader PCBs (https://hackaday.com/2022/04/16/paper-tape-reader-self-calibrates-speaks-usb/), I created a python script printing punched holes on paper.
Still have to cut the paper sheet to inch-wide strips and tape then together.
The reader firmware promises it can work in reverse mode, so I can test with these 'printed' holes and don't have to build a paper tape punch to test the reader.
The script is based on the FPDF library (http://www.fpdf.org/).
python3 punch2pdf.py punch2pdf.py
Produces the script in PDF paper tape format.
The script is functional, but not properly refactored. It currently prints 8 bits, no parity. 7-bit with parity might be a cool feature.
The page size is hard coded A4.
Reposted with permission from the author. And if you want to explore more projects, please follow the author: fjkraan (Hackaday). He has many wonderful projects and is an excellent maker. Enjoy it!