Command line reference
command line format barcodereadercli \[options] \[sources] \[@configuration file] where \<font color="#eb144c">options\</font> options specified in this document see option rules /#option rules \<font color="#eb144c">sources\</font> files, folders, or urls identifying input files \<font color="#eb144c">configuration file\</font> zero one or more configurations files source the \<font color="#eb144c">source\</font> parameter specifies the location of image files to read barcodes from multiple sources can be specified sources can be local image file local folder web based image the source name should start with \<font color="#eb144c">http //\</font> , \<font color="#eb144c"> htpps\ //\</font> the rules for source values are the value of the source should use utf 8 to represent non english file names the value containing spaces should be enclosed in double quotes ( \<font color="#eb144c">""\</font> ) the value containing environmental and user macro references docid\ lcj sxpqwhwur1q 9vvgz expanded at runtime options option rules most options are specified as \<font color="#eb144c"> name=value\</font> , except options with a value described as a flag are specified as \<font color="#eb144c"> name\</font> the \<font color="#eb144c"> d\</font> option is specified as \<font color="#eb144c"> d="macro name=macro value"\</font> if the value is described as a list , zero or more valid values can be set multiple values should be separated by a comma (,) no spaces are allowed in the list all options (except \<font color="#eb144c"> type\</font> ) are optional a new option value (except \<font color="#eb144c"> output\</font> ) replaces the previous value an empty string value sets the option to its default value for options specifying file names \<font color="#eb144c"> output\</font> and \<font color="#eb144c"> output text\</font> if the value contains spaces, it should be enclosed in double quotes ( \<font color="#eb144c">""\</font> ) environmental and user macro references are expanded at runtime the order of the options on the command line and in configuration files is important reader options and source options should be specified before the \<font color="#eb144c">source\</font> parameter thus different options can be applied to individual sources output options that apply to output should be specified before the \<font color="#eb144c"> output\</font> option thus, different options can be applied to individual outputs reader options reader options configure the barcode reader parameters to be applied to a source name value description default valid values \<font color="#eb144c"> type\</font> \<font color="#eb144c"> t\</font> required list of barcode types code39 code128 ucc128 pdf417 qr datamatrix drvlic code39 code128 codabar ucc128 code93 upca ean8 upce ean13 i25 datamatrix pdf417 qr drvlic imb bpo aust sing 4state patch \<font color="#eb144c"> tbr\</font> list of tbr codes docid\ krbh lutyawzphraj5lqs 0 valid tbr codes for a given type are displayed by the tbr wizard docid\ glmgkfkxrclppzzasnvwc \<font color="#eb144c"> dir\</font> list of barcode directions all all horz vert \<font color="#eb144c"> max bc\</font> \<font color="#eb144c"> m\</font> a maximum number of barcodes to read on a page 0 means read all barcodes 0 0 100 \<font color="#eb144c"> timeout\</font> barcode reading timeout in seconds 0 means no timeout 0 \<font color="#eb144c"> encoding\</font> encoding to convert barcode data to utf 8 text see here docid\ n6svssr4bwti0m0b m3rr tbr codes valid codes for specific barcode types are reported in the tbr wizard docid\ glmgkfkxrclppzzasnvwc each tbr code set in \<font color="#eb144c"> tbr\</font> option (if more than one) is applied sequentially to each source page if the number of barcodes found on a page after applying a tbr code from the list is equal to or more than \<font color="#eb144c"> max bc\</font> value (if set), the rest of the tbr codes are ignored for this page if \<font color="#eb144c"> tbr\</font> option is not set, the default algorithm is used if tbr codes are changed, to return to the default algorithm to the next source set \<font color="#eb144c"> tbr=0\</font> source options multi page file format this option control processing of multi page file formats pdf , tiff , gif name value description default valid values \<font color="#eb144c"> pages\</font> list of page selectors to limit reading to a set of pages nmb is an explicit page number (1 based) start is an explicit page number or first stop is an explicit page number or last cnt is the maximum number of barcodes to detect in a file all all even odd first last nmb start stop maxbc\ cnt if the page range is maxbc\ cnt and the value of cnt > 0, then file processing stops once cnt barcodes are found setting a barcode count limit might increase overall processing time since multi threading is disabled source options web based images images from \<font color="#eb144c">http //\</font> , \<font color="#eb144c"> htpps\ //\</font> sources are downloaded by the curl https //curl haxx se/docs/manpage html command line application linux version is installed with the barcodereadercli windows version is available here https //curl haxx se/download html and should be installed in the path the curl is invoked with the following default curl options \<font color="#eb144c"> s s d m o l\</font> additional options should be set as needed based on the system requirements barcodereadercli reports errors returned from the curl to resolve any problems invoke curl from the command line to identify required curl options name value description default valid values \<font color="#eb144c"> curl timeout\</font> total timeout in seconds to download an image with curl a value of 0 0 disables the timeout 15 0 floating point number \<font color="#eb144c"> curl options\</font> additional curl options the list of options should be enclosed in the double quotes ( \<font color="#eb144c">""\</font> ) use an escape character before any double quotes in the list curl command line options https //curl se/docs/manpage html \<font color="#eb144c"> curl no redirect\</font> disable request redirect source options folder processing these options control the selection of image files when the \<font color="#eb144c">source\</font> is a folder name value description default valid values \<font color="#eb144c"> sub\</font> \<font color="#eb144c"> subfolders\</font> include subfolders of the source folder in the processing true true false \<font color="#eb144c"> incl\</font> list of file name masks to be included in the processing tif, tiff, jpg, jpeg, pdf, bmp, png \<font color="#eb144c"> excl\</font> list of file name masks to be excluded from processing output options these options control the output https //www inliteresearch com/help/barcodereadercli/output htm generated by barcodereadercli name value description default valid values \<font color="#eb144c"> output\</font> \<font color="#eb144c"> o\</font> file path output is sent to the specified file zero or more output files can be specified, each requires a separate output option entry console output is sent to \<font color="">stdout\</font> using format option file path console \<font color="#eb144c"> format\</font> console output format, text value requires output text option to be specified json json csv text bin \<font color="#eb144c"> output text\</font> string with macro reference to define text output in a file, the string should be \<font color="#eb144c">file //text file path\</font> , where text file path is a template file path \<font color="#eb144c"> if exists\</font> action to take if the output file already exists overwrite replaces the existing file append adds new data to an existing file (not allowed for bin output) unique adds a unique file index to the filename before the extension error generates a runtime error overwrite overwrite append unique error \<font color="#eb144c"> fields\</font> for barcodes fields to output in json and csv output fields values are obtained through macro expansion except barcode outputs all default fields text , data , length , type barcode macros docid\ lcj sxpqwhwur1q 9vvgz barcode \<font color="#eb144c"> fields\</font> for driver license barcodes fields to output in json and csv output fields values are obtained through macro expansion except drvlic outputs all default fields last , first , middle , dob , eyes , hair , sex , height , weight , street , city , state , postal,id , issued , expires driver license macros docid\ lcj sxpqwhwur1q 9vvgz drvlic miscellaneous options name value description \<font color="#eb144c"> help\</font> \<font color="#eb144c"> h\</font> flag to output command line help to console no processing is done \<font color="#eb144c"> silent\</font> \<font color="#eb144c"> s\</font> silent mode flag do not output the barcodereadercli version and information \<font color="#eb144c"> timeout\</font> execution timeout in seconds the default value of 0 0 disables the timeout error is returned if total execution time exceeds timeout \<font color="#eb144c"> d\</font> command line use macros docid\ lcj sxpqwhwur1q 9vvgz the format is \<font color="#eb144c"> d="macro name=macro value"\</font> configuration file a configuration file is a convenient way to define a set of options and/or sources shared by multiple systems or sessions for example, they can be used to define macros specific to a system, such as the location of source or output files define reader options applied to sources specified on a command line zero or more configuration files can be set on the command line multiple files are processed in the order of appearance the format rules for configuration files are \<font color="#eb144c"> name\</font> sets command line flags \<font color="#eb144c"> name=value\</font> sets command line options with values \<font color="#eb144c"> d="macro name=macro value"\</font> specifies a command line use macros docid\ lcj sxpqwhwur1q 9vvgz \<font color="#eb144c">source\</font> specifies the location of image files to read barcodes from it can be an image file , a folder containing image files, or a url values with spaces should be enclosed in double quotes ( \<font color="#eb144c">"some text"\</font> ) \<font color="#eb144c">#\</font> starts the comment portion of a line if \<font color="#eb144c">#\</font> is the first character, the whole line is treated as a comment \<font color="#eb144c">exit\</font> ends the processing of a configuration file the rest of the file is ignored the configuration file should be in utf 8 to include non english file names