Text to encode
Generate
PDF417 2D barcode in canvas
(test using your mobile phone barcode scanner or right click on the barcode image and save as image file, then decode using https://zxing.org/w/decode.jspx)