# qr_labels I was packing boxes and nerd-sniped myself by deciding I needed a labelling and cataloguing system to help me keep track of what was there. To do that I needed to print labels for boxes, and figured it might be useful if they also had QR codes on them. I thought there would be a simple online tool to create PDF pages of identical QR labels, but apparently not. # Installing go install code.ppl.town/justin/qr_labels/cmd/qr_labels@latest or, you can just run it without installing: go run code.ppl.town/justin/qr_labels/cmd/qr_labels@latest # Synopsis Generate a page with 6 labels, where the QR code represents the string "hello world" and the printed label is the same, qr_labels -code "hello world" -code-is-label -rows 3 -cols 2 -output labels1.pdf ![hello world](labels1.png) Generate a page with 24 labels, with the code being a URL and the text label being a different string. Adjust the sizes of the code and the font and include borders between each label: qr_labels -code "https://www.youtube.com/watch?v=dQw4w9WgXcQ" -label 'innocent link' -rows 6 -cols 4 -size 30 -font-style BI -borders -font-size 20 -output labels2.pdf ![hello world](labels2.png) # Help Run `qr_labels -help` for all command line parameters. ``` Usage of qr_labels: -borders print borders between labels -code string string to turn into a QR code (URL, text etc) -code-is-label use the -code as the -label -cols uint number of columns on the page (default 3) -font string name of the font (default "Helvetica") -font-size float font-size, in pts (default 24) -font-style string font style, combine 'B', 'U', 'S', 'I' characters -label string label (printed above QR code) -output string filename to write the PDF -page-size string page size (A1, A2, A3, A4, A5, A6, A7, Letter, Legal, Tabloid) (default "A4") -rows uint number of rows on the page (default 4) -size float size of the QR code (default 50) ```