Data Matrix class properties

Properties

Class Attribute Applet & Servlet Default Value Comments
encodingMode DATA_MODE MODE_ASCII The encoding mode;

Valid values are MODE_ASCII=0 (default), MODE_C40=1, MODE_TEXT=2 or MODE_BASE256=3.

When using the applet or servlet, exclude the "MODE_"; for example, use "TEXT" instead of  "MODE_TEXT".

preferredFormat PREFERRED_FORMAT -1 Sets the preferred format represented by a number; valid values are from
0 (10X10)    1 (12X12)   2 (14X14)   3 (16X16)   4 (18X18)  
5 (20X20)   6 (22X22)   7 (24X24)   8 (26X26)   9 (32X32)  
10 (36X36)   11 (40X40)   12 (44X44)   13 (48X48)   14 (52X52)  
15 (64X64)   16 (72X72)   17 (80X80)   18 (88X88)   19 (96X96)  
20 (104X104)   21 (120X120)   22 (132X132)   23 (144X144)   

and from 24 (8X18)    25 (8X32)   26 (12X26)   27 (12X36)   28 (16X36)   29 (16X48);

The default value is -1 which sets this to automatic.

When using the applet or servlet, use text like "120X120".

If the format chosen is too small for the data to be encoded, an appropriate square symbol will be selected.

processTilde PROCESS_TILDE FALSE If true (or "Y" in applet or servlet) the tilde (~) will be processed, otherwise false ("N")