# Reading barcodes with the Softek library

From ELOas version 10 onward, you can read barcodes using the Softek library. Barcodes are recognized via the Softek barcode DLLs "SoftekBarcodeDLL.dll" or "SoftekBarcode64DLL.dll", depending on the operating system (32/64-bit). Barcode recognition is used in an ELOas script as follows:

var barcodeReader = Packages.de.elo.mover.utils.ELOAsUtils.
                    createBarcodeReader2(emConnect);
var barcodeFile = new File("C://temp//BarcodeFile.tif");
var barcodeCount = barcodeReader.ScanBarCode(barcodeFile.getPath());
log.info("barcodeCount=" + barcodeCount);
var barcodeDescr = barcodeReader.GetBarString(barcodeCount);
log.info("barcodeDescr=" + barcodeDescr);

# Barcodes formats in the Softek library

Refer to the official Softek library documentation for supported barcode formats. The following formats are supported:

  • Codabar 1D
  • Code 128 1D
  • Code 2 of 5 Datalogic 1D
  • Code 2 of 5 Iata1 1D
  • Code 2 of 5 Iata2 1D
  • Code 2 of 5 Industrial 1D
  • Code 2 of 5 Interleaved 1D
  • Code 2 of 5 Matrix 1D
  • Code 3 of 9 1 D
  • Code 3 of 9 Extended 1D
  • Code 93 1D
  • EAN-8 1D
  • EAN-13 1D
  • GS1-128, UCC-128, EAN-128 1D
  • GS1-Databar 2D
  • Patch Code Symbols 1D
  • UPC-A 1D
  • UPC-E 1D
  • QR-Code 2D
  • Data Matrix ECC200 2D
  • Micro-PDF-417 2D
  • PDF417

# Example for reading a QR code

You can enable the function to read QR codes with the ELOas instruction:

"barcodeReader.setReadQrCode(1);"

Information

The methods of the BarcodeReader class are described in the official ELOas JavaDoc (opens new window).

Last updated: July 31, 2023 at 8:32 AM