Close
0%
0%

Punch tape patterns to PDF

Punched paper tape can be decorative, so this script can create PDFs full of them.

Public Chat
Similar projects worth following
67 views
0 followers
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.

punch2pdf.py.pdf

The script output, using itself as input.

Adobe Portable Document Format - 482.59 kB - 12/15/2022 at 15:33

Preview
Download

punch2pdf.py

The script

x-python - 3.04 kB - 12/15/2022 at 15:33

Download

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates