Databar strings

The Pattern string for a linear Databar symbol consists of a stream of digit characters, with alternate characters representing first bars, then spaces. So the pattern 12131 represents an 1 unit bar followed by a 2 unit space, a 1 unit bar, a 3 unit space and a 1 unit bar, etc.

The Pattern strings for Stacked Databar symbols are a little more complex. The string consists a stream of digit characters, with each row of the symbol (including the separator patterns) being separated by a newline (\n or CHR(10)) character. For the stacked symbols each row start with a space of the specified width. So the row pattern 2112131 represents a 2 unit space followed by a 1 unit bar followed by a 2 unit space, a 1 unit bar, a 3 unit space and a 1 unit bar, etc. If the initial digit in a row is 0 then this means there is no starting space.

The row heights are given in the Databar barcode section. Users requiring further information on the allowed sizes for Databar codes should refer to the Databar standard specification..

More:

DataMatrix strings