Created
February 4, 2013 07:52
-
-
Save yusukemihara/4705484 to your computer and use it in GitHub Desktop.
barbyでバーコード作ってみよう
This file contains hidden or 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
| require 'barby' | |
| require 'barby/outputter/rmagick_outputter' | |
| barcode = Barby::Code128B.new(ARGV[1]) | |
| File.open(ARGV[0],"w"){|f| | |
| f.write barcode.to_png(:height=>32,:margin=>1) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment