cancel
Showing results for 
Search instead for 
Did you mean: 

PDF417 & ASCII

former_member217677
Participant
0 Kudos

Hello together,

I need to create a barcode with type PDF417 in PDF form.  This bar code is a string combined with different values separated by ASCII code.

As soon I use HEX numbers  "1E" (RS), "1D" (GS) and "04" (EOT) to convert to ASCII code in my print program

I get only "#" sign, what is wrong. Function module is correct and works for example for HEX = 61 (ASCII = a).

Question is now: How to convert/save needed HEX numbers to ASCII and move them to PDF417 bar code in pdf form.

THanks in advance,

Evgenij

Accepted Solutions (0)

Answers (2)

Answers (2)

diego_santos
Employee
Employee
0 Kudos

Hi and ,

Interface of ADS is xml data (UTF-8 encoding). In this case, we can't send Hex value within XML data. So first you need to send data for each part.

You need to parepare script to concatenate with these seperated data and 'Group Separator'.

Sample JavaScript code for Barcode

var lv_rs = String.fromCharCode(30);

var lv_gs = String.fromCharCode(29);

var lv_eot = String.fromCharCode(04);

this.rawValue = START_2D.rawValue;

this.rawValue = this.rawValue.concat(lv_rs, TYPE_2D.rawValue, lv_gs);

If you use this way, it is possible to add 'group separater' into PDF and ZPLoutput.

Regards,

Diego

tisha_dharod
Explorer
0 Kudos

Hello Evgenij

I am facing same issue . Is this issue resolved on your side ?

Thanks