Skip to content

Instantly share code, notes, and snippets.

@gwpl
Created August 1, 2016 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gwpl/00b471802f52d558df7e84c4b1bddd44 to your computer and use it in GitHub Desktop.
Save gwpl/00b471802f52d558df7e84c4b1bddd44 to your computer and use it in GitHub Desktop.
# type "My\nmultiline\nlabel" and see it printed on 32x57 mm Dymo 450 via network ;) # based on http://unix.stackexchange.com/a/298020/9689
# type "My\nmultiline\nlabel" and see it printed on 32x57 mm Dymo 450 via network ;)
# based on http://unix.stackexchange.com/a/298020/9689
cd /tmp
read -r -p 'Label:' label && convert -background white -fill black -density 600x600 -size 1346x756 -font 'DejaVu-Sans' -gravity center label:"${label}" label.pdf && xpdf label.pdf && lpr -P DYMO_LabelWriter_450_RPi2_B_1st -o raw -o scaling=100 label.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment