Dynamic PDF417 code for xfa form with binary encoding
Hi to all,
I purchased the sample fragment from here https://thelivecycle.blogspot.com/2016/03/dynamic-pdf417-code.html
The fragment is based on http://bkuzmic.github.io/pdf417-js/
- The silence zone around the barcode must be at least two widths of the basic element.
- the width of the basic element is 0.254 mm
- the ratio of height and width of the basic element is 3:1
- error correction level is 4
- the barcode has 9 data columns
- the width of the barcode is 58 mm
- The height of the barcode depends on amount and type of data, but must not exceed 26 mm (with areas of silence).
- data encoding must be binary (Compact or Macro PDF417 are not used)
After the form is populated, form will be verified and if the form is valid, barcode will be generated.
The barcode is used by the payer to just scan it and the payment data are decoded and placed inside mobile bank app without typing in all data.
The form looks following:

Beside the fragment there is an additional renderBarcodeFunction which converts string into barcode and places it on the form.
I need help with adjusting that function, to get the output which can be decoded by mobile bank application.
In addition, when I use demo site http://bkuzmic.github.io/pdf417-js/ for generating barcode from same data and scanning it - mobile app recognizes it successfully.
I think, that custom renderBarcodeFunction must be adjusted in some way.
Is there anybody who can help me with that?
Kind regards,
Ivica