Module: Asposebarcodejava::CreatingAztecBarcode
- Defined in:
- lib/asposebarcodejava/2DBarcode/creatingaztecbarcode.rb
Instance Method Summary collapse
Instance Method Details
#initialize ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/asposebarcodejava/2DBarcode/creatingaztecbarcode.rb', line 3 def initialize() 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').Aztec) builder.setCodeText("1234567890") # Save the image to your system and set its image format to Jpeg builder.save(data_dir + "CreatingAztecBarcode.jpg") # Display Status puts "Created Aztec Barcode Successfully." end |