Created
August 1, 2016 15:02
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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