One of the ways in which you can improve a PDF form barcode is by creating custom scripts. Writing such scripts requires a basic competency with JavaScript and a familiarity with Acrobat-specific JavaScript. For information, see the Acrobat JavaScript Scripting Guide on the JavaScript support page (English only) of the Adobe website. For information about basic JavaScript, refer to any of the many resources available on that subject.
After inserting a barcode of maximum size, changing
the cell size or decode condition may cause the barcode to cross
the page borders. Avoid this behavior by selecting the appropriate
cell size and decode conditions for the barcode.
Add a barcode field
Test a barcode fieldThe barcode form field is now ready for distribution.
Include additional data fields
in the barcodeIf Encode Using is selected, click Pick, and select additional form fields to be encoded.
If Custom Calculation Script is selected, click Edit, and write additional JavaScript to include the additional fields.
After including new data fields in the barcode, be sure that the barcode area is large enough by testing sample data. If the barcode area is grayed out, adjust the barcode size, barcode properties, or text field properties so that the data content fits into the barcode area.
Resize a barcode fieldThe most common error when authoring barcoded forms is when the barcode area is too small to accommodate the data. If this occurs during your test of sample data, the barcode appears as a solid gray rectangle instead of showing its coding pattern.
Adjust data content to fit in a
barcode fieldOn the Options tab, click the Custom button and enter lower values for Error Correction Level and Y/X Ratio.
On the Options tab, select Tab Delimited rather than XML as the data-encoding format. XML requires more barcode area to encode information than Tab Delimited does.
On the Options tab, select Compress Data Before Encoding To Barcode, but only if you will be using an Adobe software decoder (available separately).
On the Options tab, select a different Symbology option.
On the Value tab, click the Pick button, and deselect any fields that you don’t need to encode. For example, don’t include fields with redundant information
On the Value tab, enter a custom script that converts user-entered text to either all lowercase or all uppercase characters during the encoding process.
On the Options tab, enter a value (or reduce the existing value) for Limit Of Characters
On the Validate tab, write a custom script that restricts data to alphanumeric characters and to a single case. (Text that is either all uppercase or all lowercase requires less barcode area than the same text written in a mixture of uppercase and lowercase characters.)
Consider creating additional barcode
fields in the form and mapping different data to each barcode field.