Processing: Generating packing labels from a text file
With my recent move I’ve had to sort and pack a lot of my personal items, tools and materials. Trying to stay organized when the process takes a while can be a pain — sounds like a task for a sharpie and some index cards! Alas, I thought it would be fun to use Processing’s PDF rendering capabilities to generate my own packing labels! Probably didn’t save myself any time, but it was a fun exercise and I think it is a good example of why programming is something more people should check out.
It worked out really nicely, much easier than using something like PDFLib with php, and maybe even still a bit faster for me than using MS Word or Open Office.
I’ve hosted the code up on github in a gist as it’s not very much code. It only requires a single text file saved in the sketch folder named “moving_labels.txt” and the labeling format is specified in the script, and attached as an additional file on the gist.
Hosted on GitHub:
https://gist.github.com/2662880



















































