Insert any hex character in a 2D barcode

Insert any hex character in a 2D barcode

In some 2D barcodes it is required to insert very special characters, that you cannot find on your keyboard. The characters are normally specified as the ascii hex character.

These special characters are e.g. used as delimiters in 2D barcodes to separate fields.

 

Examples of such special hex values can be:

 

Hex 05, Hex 0A (also knows as LF or line feed), Hex 0D (also known as CR or Carriage Return) and Hex 1D.

 

To insert such characters you can use the built in function, ng:hexToUtf8().

This function accepts a string as input, so if you e.g. want to define a string, that contains the characters with the hex value 05, then you can define it with this function:

 

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.

 

The result view will show the hex characters, but it will be substituted to the right character(s) in the final, merged output and in the preview.

    • Related Articles

    • Insert line breaks in a 2D barcode

      You have two options, if you want to insert a line break in a 2D barcode (like PDF417, Datamatrix and QR barcodes): 1.If you want to insert a simple line break with the full Carriage Return (CR) and Line Feed (LF), then you can insert a line break by ...
    • Barcode element

      To insert a barcode in InterFormNG2 you need to click this icon: You can find it via the '+' here: You can edit an existing barcode element by double clicking the barcode element in either the element tree on the left or in the result view of the ...
    • d.velop support

      One of the modules in InterFormNG2 is support for output into the d.velop archiving system. The support for d.velop includes the configuration, which is covered in the section, d.velep configuration. Here you setup the connection to your d.velop ...
    • To d.velop Documents

      The advanced output workflow component, To d.velop Documents can be used in order to output documents from InterFormNG2 into your d.velop application. This component can create a new item in a d.velop documents archive with the current workflow ...
    • d.velop configuration

      If you have purchased the d.velop module for InterFormNG2, then you can output documents from InterFormNG2 into the d.velop application. A prerequisite for that is, that you have configured a connection to your d.velop application like below: In ...