Insert any hex character in a 2D barcode - InterFormNG2 Manual

Insert any hex character in a 2D barcode

In certain 2D barcodes, it is necessary to insert special characters that are not available on a standard keyboard. These characters are typically represented by their ASCII hex values and are commonly used as delimiters to separate fields in the barcode.

Some examples of such special hex values include:

  1. Hex 05
  2. Hex 0A (also known as LF or Line Feed)
  3. Hex 0D (also known as CR or Carriage Return)
  4. Hex 1D

To insert these characters, you can use the built-in function ng:hexToUtf8(). This function accepts a string as input. For instance, if you need to define a string that includes a character with the hex value 05, you can use the following syntax:

ng:hexToUtf8('05')

Which can be inserted in e.g. concat functions or you can use this in definition of a variable as shown here.

In the result view, these hex characters will be displayed, but in the final merged output and preview, they will be correctly substituted with their respective characters.