Specify Symbologies for BarCodes in Ruby

Aspose.BarCode - Specify Symbologies for Barcodes

To Specify Symbologies for Barcodes using Aspose.Barcode Java for Ruby, simply invoke SpecifySymbologies module. Here you can see example code.

Ruby Code

 data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'

\# Instantiate barcode object

builder = Rjb::import('com.aspose.barcode.BarCodeBuilder').new

\# ============ Code39Standard ===================== 

\# set symbology type


\# Save image to disk

builder.save(data_dir + "code39Standard.out.png")

\# ================== QR =========================== 

\# set symbology type


\# Save image to disk

builder.save(data_dir + "QR.out.png")

\# =============== Code128 ========================= 

\# set symbology type


\# Save image to disk

builder.save(data_dir + "code128.out.png")

\# Print message

puts "Barcode image(s) generated successfully."

Download Running Code

Download Specify Symbologies for Barcodes (Aspose.BarCode) from any of the below mentioned social coding sites: