We cant provide our template but its easy enough to create.
Well its quite simple, we used LiveCycle designer to create a simple form that had a barcode in it, then we loaded it up as a Form object:
Form dataform = new Form("test.pdf","output.pdf");
Then we altered the data for the barcode.
Then closed the form standard
What we found in this method was that the form wouldnt render the barcode font unless we included some script to rtim the field and remove a space we had added to the data, this effectively forced the form to reload the barcode field and thus show the font.
However, when we created two of these barcode forms and concatenated them:
PdfFileEditor pdfEditor = new pdfFileEditor();
We discovered in another project that we had to change the field names becaus the data would become redundant accors the same field name in the form, after the field name was changed in the second field and performed the concatenate, the barcode fields had converted to text fields.
Something else we noticed is that when we took out the rename part of the code, the barcodes (along with th rtrim script) showed properly.
So i am guessing that it lies somewher ein between the field name rename or the concatenate.