Create, test, and edit barcode fields, Add a barcode field – Adobe Acrobat XI User Manual

Page 260

Advertising
background image

253

Forms

Last updated 1/14/2015

Design tips for barcodes

Issues that affect how you design and place barcodes include usability and space. As an example, the barcode size can
also limit the amount of data that can be encoded. For the best results, follow these guidelines.

• Position the barcode so that it’s unlikely to get folded when placed in an envelope, and position it far enough from

the edges of the page so that it won’t get clipped off during printing or faxing.

• Position it so that it can be easily seen and scanned. If a handheld scanner will be used, avoid barcodes wider than

4 inches (10.3 cm). Tall, narrow barcodes generally work best in this case. Also, avoid compressing the contents of
the barcode when using a handheld scanner.

• Make sure that the size of the barcode can accommodate the amount of data to encode. If the barcode area is too

small, it turns a solid gray. Be sure to test a completed form before distributing it to make sure that the barcode area
is large enough.

Create, test, and edit barcode fields

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 more information,
see Developing Acrobat®Applications Using JavaScript™ on

www.adobe.com/go/learn_acr_javascript_en

(PDF, English

only). For information about basic JavaScript, see 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

1

Open the form in Acrobat, open the Preferences dialog box, and select Forms on the left. Then select Automatically
Calculate Field Values.

Select Tools > Forms > Edit.

2

Click the Barcode tool

in the quick access bar, or choose Forms > Tasks > Add New Field > Barcode.

3

Drag a rectangle to define the barcode area, and then double-click the barcode field to open the Properties dialog
box.

4

In the Value tab, do one of the following:

• Select Encode Using, and then select a format (XML or Tab Delimited). Click the Pick button and select the fields

that you want to be encoded in the barcode field. If you don’t want to include the field names in the barcode data,
deselect Include Field Names.

• Select Custom Calculation Script, click Edit, and then enter your custom JavaScript code in the JavaScript Editor

dialog box.

5

In the Options tab, do all of the following:

• Select a Symbology option: PDF417, QR Code, or Data Matrix.

• Select Compress Data Before Encoding To Barcode if you want to apply this compression. Do not select this

option if a handheld scanner is used to capture data from returned forms.

• In Decode Condition, choose the type of hardware to process returned forms: Handheld Barcode Scanner, Fax

Server, Document Scanner, or Custom.

• If necessary, click Custom and enter values for X Dimension, Y/X Ratio, and Error Correction Level.

6

Make any other changes in the General and Actions tabs. Then close the Barcode Field Properties dialog box.

Advertising
This manual is related to the following products: