RGhost and BWIPP have been created using postscript as core language, the integration is pretty easy to do, there are some advantages to using RGhost and RGhost Barcode(with BWIPP) to render barcodes, among them we can highlight:
- All complexity is done in low-level, the code runs faster than using a pure-ruby code to do it.
- It improves the backend performance using Ghostscript native libraries.
- Many output formats are supported, such pdf, png, jpg, tif, ps, etc.
- With RGhost templates and RGhost Barcode you can easily create pretty neat documents, using images, shapes, custom fonts and of course, your creativity.
Now it supports new 50 barcodes types, in a total of 82 barcodes, BWIPP supports more barcode formats than any other free or commercial software.
For most of types, only pass the barcode string then the method will render it properly.
The big list
Use gem or bundler to install it, but make sure whether rghost version is >= 0.8 and rghost_barcode is >= 0.9.
gem install rghost gem install rghost_barcode -v=0.9
A simple example using QRCode
require 'rghost' require 'rghost_barcode' RGhost::Document.new do |doc| doc.barcode_hibcqrcode "A123BJC5D6E71" doc.render :pdf, :filename => "my_nice_qrcode.pdf" end
Need more Info