We can add barcode type “Code 128” in the Advanced PDF Template. It is the advanced version of code 39, and can include the 128 characters in ASCII. For Example,
If we want to add a barcode in the packing slip template in which the Barcode represents a concatenation of the Purchase Order and Delivery number can be done by the below code.
<barcode codetype="code128" showtext="true" value="(400)${salesorder.otherrefnum}(90)${record.custbody_jj_invoice_id}"/>

The above picture is the sample of barcode, here the “Test Sonny” is the purchase order value in the item fulfillment record and “INV256526” is the delivery number/invoice ID.