Skip to content

Instantly share code, notes, and snippets.

@rwjblue
Created September 21, 2012 21:18
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 rwjblue/3763960 to your computer and use it in GitHub Desktop.
Save rwjblue/3763960 to your computer and use it in GitHub Desktop.
Generate barcode to EPS with ruby (barby).
require 'barby'
require 'barby/barcode/code_39'
require 'barby/outputter/cairo_outputter'
File.open('pp_002.eps', 'w'){|io| io.write Barby::Code39.new('PP 002').to_eps}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment