Barcode Reader CLI

Command line examples

Basic barcode reading from a file

Read code39 barcode.   Output is the default JSON format:

BarcodeReaderCLI -type=code39 "your_file.tif"

Read code39 barcode. Output just text value to the console:

BarcodeReaderCLI -type=code39 "your_file.tif" -format=text --output-text="{text}"

Read barcodes from Web-based images using URL

Read barcodes from Web-based images. Read from multiple images with a single call, each reading a different barcode type.

BarcodeReaderCLI -type=pdf417 "https://your_site/your_file.jpg" -type=code39 "https://your_side/your_file.pdf"

Specify options and sources in a configuration file

BarcodeReaderCLI @"brcli-example.config"

Read Driver's License barcodes

BarcodeReaderCLI -type=drvlic "your_file.pdf"

Read barcodes from multiple files in a folder

Read barcodes in a folder and sub-folders.  Limit file types to BMP and PDF

BarcodeReaderCLI -type=pdf417 -sub -incl="*.bmp *.pdf" "your_folder"

Read barcodes using Targeted Barcode Reader (TBR)

Read using TBR Code 120

BarcodeReaderCLI -type=datamatrix -tbr=120 "your_file.bmp"

Read non-English barcode text values

Processing is configured in encoding.config file. Features in this example

  • Read multiple barcode types set in -type= option.
  • Output results to multiple files with output= options (JSON, CSV, and TEXT files)
  • Output to text files using thetemplate.txt file, configure with -output-text= option.
  • Limit type date in the output with -fields= option
  • Define macros with -d= option and expanding
  • Use -encoding= option to convert barcode values to localized text
BarcodeReaderCLI @"encoding.config" -output=console
encoding.config
template.txt