The LIBDLAZLIB library

To convert a string of characters into the bars and spaces required for the barcode requires converting the character string into another string – made up of only the 0 - z characters present in the Aztec font.

The LIBDLAZLIB library will perform this conversion, and provides the barcode() function call which can generate the required string, in addition to functions for creating a pattern string, and identifying the available modes and security levels.

The allowed mode values are shown below.

 

mode parameter

Barcode type

0

Normal

1

Compact

2

Full range

3

Rune

For most applications a mode of 0 is recommended, along with a level of 0 which provides the default value of 23% + 3 codewords.

 

 

More:

DataMatrix barcodes