Creating a Pdf417 BarCode in Ruby

Aspose.BarCode - Creating a Pdf417 Barcode

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

builder.setSymbologyType(Rjb::import('com.aspose.barcode.Symbology').Pdf417)

builder.setCodeText("12345")

\# Save the image to your system and set its image format to Jpeg

builder.save(data_dir + "CreatingPdf417Barcode.jpg")

\# Display Status

puts "Created Pdf417 Barcode Successfully."

Download Running Code

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