How to Generate a Patch Code in Ruby

Aspose.BarCode - How to Generate a Patch Code

To Generate a Patch Code using Aspose.Barcode Java for Ruby, simply invoke PatchCode 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

\# Set Symbology type


\# Set code text

builder.setCodeText("Patch T")

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

\# Display Status

puts "Generated PatchCode Successfully."

Download Running Code

Download How to Generate a Patch Code (Aspose.BarCode) from any of the below mentioned social coding sites: