These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Creating Barcodes

M_Torrick
Registered: Sep 12 2007
Posts: 6
Answered

We have an “orphaned” application that currently can populate fields on PDF’s with data from a database. We currently fill a field on most of our forms with what we refer to as an “application number”. Its field name is CQ_85.

We would like to generate barcodes on our forms using this “application number”. It is my understanding that we would need to have an asterisk before and after our application number in order to generate the barcode that we would be able to scan.

Is there anyway to do this?

Any help will be appreciated.

Thanks,

Mike

My Product Information:
Acrobat Pro 7.0, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Which bar code symbology do you need? It sounds like it could be Code 39, in which case you could you a bar code font for the field. You could set up the form with a bit of JavaScript to copy the value entered into the CQ_85 field, add the asterisks, and display the barcode. For example, you could use something like the following as the field's as the custom Validation script of the CQ_85 field:

getField("your_barcode_field").value = event.value ? ("*" + event.value + "*") : "";
If you need to include a check digit, you'd have to add additional JavaScript to determine what it should be and add it in there.

George
M_Torrick
Registered: Sep 12 2007
Posts: 6
Thanks!

It worked perfectly...Mike