|
Project Information
Members
Links
|
MOVED TO GITHUBhttp://github.com/anujluthra/barcode-generator/
Barcode Generator for Rails - ReDuxBarcode generator makes generating/displaying barcodes in any format like, PNG,JPEG,JPG etc.. for any alphanumeric id, a piece of cake. It uses Gbarcode for encoding barcode data and ImageMagick to generate images out of it for displaying in views.(yes yes.. you read it correct, its NOT using RMagick anymore) This way we can generate any barcode type which Gbarcode -> Gnome Barcode project supports. USAGEits as simple as saying <%= barcode 'FJJ4JD'%> This will generate a barcode for FJJ4JD in BARCODE_39 format with default width and height and include it in the view.
the images are stored in /public/images/barcodes subdir. Options Options Options ..to customize your barcodes, you can optionally pass following information in your views
<%= barcode 'ANUJ', :height => 100,
:width => 400,
:margin => 100,
:xoff => 20,
:yoff => 40
%> this will produce something beautiful like this ....
InstallationRequirements
install plugin via svnscript/plugin install http://barcode-generator.googlecode.com/svn/trunk/barcode_generator rake barcode_setup Supported Barcode FormatsGbarcode as of now allows us to generate barcodes in following formats: BARCODE_EAN
BARCODE_UPC
BARCODE_ISBN
BARCODE_128B
BARCODE_128C
BARCODE_128
BARCODE_128RAW
BARCODE_39
BARCODE_I25
BARCODE_CBR
BARCODE_MSI
BARCODE_PLS
BARCODE_93
BARCODE_ANY
BARCODE_NO_CHECKSUMfor more information on Gbarcode visit http://gbarcode.rubyforge.org/rdoc/index.html |