Creating a DataMatrix BarCode in Ruby

Aspose.BarCode - Creating a DataMatrix Barcode

To Create a DataMatrix Barcode using Aspose.Barcode Java for Ruby, simply invoke CreatingDataMatrixBarcode 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



\# Save the image to your system and set its image format to Jpeg + "CreatingDataMatrixBarcode.jpg")

\# Display Status

puts "Created DataMatrix Barcode Successfully."

Download Running Code

Download Creating a DataMatrix Barcode (Aspose.BarCode) from any of the below mentioned social coding sites: