Barby::Code39 with text

141 views
Skip to first unread message

João Marques

unread,
Jan 17, 2013, 1:37:55 PM1/17/13
to ruby-...@googlegroups.com
Hi,

I'm using barby to generate a bar code with code 39
http://en.wikipedia.org/wiki/Code_39

I wondering if there is any workaround to add text with barby (something like the wiki link).

My current code is:

<% barcode_value = "099999333" %>
<% barcode = Barby::Code39.new(barcode_value)  %>
<% File.open('code39XQW.png', 'w'){|f| %>
<% f.write barcode.to_png(:margin => 3, :xdim => 2, :height => 55) %>
<% } %>

Thanks.
Reply all
Reply to author
Forward
0 new messages