Data Matrix class properties

Properties

Class Attribute JavaBean Applet & Servlet Default Value Comments
encoding EncodingMode MODE ASCII The encoding mode; valid values are E_ASCII, E_C40, E_TEXT or E_BASE256. When using the applet or servlet, exclude the "E_"; for example, use TEXT instead of  E_TEXT. When using the JavaBean, use the "setEncodingMode" field and enter the appropriate number for the desired mode:
  • 0=E_ASCII (default)
  • 1=E_C40
  • 2=E_TEXT
  • 3=E_BASE256
(see class barCodeEncoder in the encoderDoc folder of the package)   FORMAT JPEG Determines the format of the image when using the servlet or saving a barcode image to a file. Valid values are GIF and JPEG. The GIF files generated are typically 4 to 20 times smaller in size than the JPEG files.
preferredFormat PreferredFormat PFMT -1 Sets the preferred format represented by a number; valid values are from 0 (10X10) to 23 (144X144) and from 24 (8X18) to 29 (16X48); The default value is -1 which sets this to automatic. When using the applet or servlet, enter "C" and the format all uppercase. For example, for 16 x 48 enter C16X48. If the format chosen is too small for the data to be encoded, an appropriate square symbol will be selected.
processTilde ProcessTilde PT FALSE If true (or "Y" when using the applet for servlet) the tilde (~) will be processed.