User Guide Cancel

PDF barcode form fields

  1. Acrobat User Guide
  2. Introduction to Acrobat
    1. Access Acrobat from desktop, mobile, web
    2. Introducing the new Acrobat experience
    3. What's new in Acrobat
    4. Keyboard shortcuts
    5. System Requirements
  3. Workspace
    1. Workspace basics
    2. Opening and viewing PDFs
      1. Opening PDFs
      2. Navigating PDF pages
      3. Viewing PDF preferences
      4. Adjusting PDF views
      5. Enable thumbnail preview of PDFs
      6. Display PDF in browser
    3. Working with online storage accounts
      1. Access files from Box
      2. Access files from Dropbox
      3. Access files from OneDrive
      4. Access files from SharePoint
      5. Access files from Google Drive
    4. Acrobat and macOS
    5. Acrobat notifications
    6. Grids, guides, and measurements in PDFs
    7. Asian, Cyrillic, and right-to-left text in PDFs
  4. Creating PDFs
    1. Overview of PDF creation
    2. Create PDFs with Acrobat
    3. Create PDFs with PDFMaker
    4. Using the Adobe PDF printer
    5. Converting web pages to PDF
    6. Creating PDFs with Acrobat Distiller
    7. Adobe PDF conversion settings
    8. PDF fonts
  5. Editing PDFs
    1. Edit text in PDFs
    2. Edit images or objects in a PDF
    3. Rotate, move, delete, and renumber PDF pages
    4. Edit scanned PDFs
    5. Enhance document photos captured using a mobile camera
    6. Optimizing PDFs
    7. PDF properties and metadata
    8. Links and attachments in PDFs
    9. PDF layers
    10. Page thumbnails and bookmarks in PDFs
    11. PDFs converted to web pages
    12. Setting up PDFs for a presentation
    13. PDF articles
    14. Geospatial PDFs
    15. Applying actions and scripts to PDFs
    16. Change the default font for adding text
    17. Delete pages from a PDF
  6. Scan and OCR
    1. Scan documents to PDF
    2. Enhance document photos
    3. Troubleshoot scanner issues when scanning using Acrobat
  7. Forms
    1. PDF forms basics
    2. Create a form from scratch in Acrobat
    3. Create and distribute PDF forms
    4. Fill in PDF forms
    5. PDF form field properties
    6. Fill and sign PDF forms
    7. Setting action buttons in PDF forms
    8. Publishing interactive PDF web forms
    9. PDF form field basics
    10. PDF barcode form fields
    11. Collect and manage PDF form data
    12. About forms tracker
    13. PDF forms help
    14. Send PDF forms to recipients using email or an internal server
  8. Combining files
    1. Combine or merge files into single PDF
    2. Rotate, move, delete, and renumber PDF pages
    3. Add headers, footers, and Bates numbering to PDFs
    4. Crop PDF pages
    5. Add watermarks to PDFs
    6. Add backgrounds to PDFs
    7. Working with component files in a PDF Portfolio
    8. Publish and share PDF Portfolios
    9. Overview of PDF Portfolios
    10. Create and customize PDF Portfolios
  9. Sharing, reviews, and commenting
    1. Share and track PDFs online
    2. Mark up text with edits
    3. Preparing for a PDF review
    4. Starting a PDF review
    5. Hosting shared reviews on SharePoint or Office 365 sites
    6. Participating in a PDF review
    7. Add comments to PDFs
    8. Adding a stamp to a PDF
    9. Approval workflows
    10. Managing comments | view, reply, print
    11. Importing and exporting comments
    12. Tracking and managing PDF reviews
  10. Saving and exporting PDFs
    1. Saving PDFs
    2. Convert PDF to Word
    3. Convert PDF to PPTX
    4. Convert PDF to XLSX or XML
    5. Convert PDF to JPG
    6. Convert PDF to PNG
    7. Convert or export PDFs to other file formats
    8. File format options for PDF export
    9. Reusing PDF content
  11. Security
    1. Enhanced security setting for PDFs
    2. Securing PDFs with passwords
    3. Manage Digital IDs
    4. Securing PDFs with certificates
    5. Opening secured PDFs
    6. Removing sensitive content from PDFs
    7. Setting up security policies for PDFs
    8. Choosing a security method for PDFs
    9. Security warnings when a PDF opens
    10. Securing PDFs with Adobe Experience Manager
    11. Protected View feature for PDFs
    12. Overview of security in Acrobat and PDFs
    13. JavaScripts in PDFs as a security risk
    14. Attachments as security risks
    15. Allow or block links in PDFs
  12. Electronic signatures
    1. Sign PDF documents
    2. Capture your signature on mobile and use it everywhere
    3. Send documents for e-signatures
    4. Create a web form
    5. Request e-signatures in bulk
    6. Collect online payments
    7. Brand your account
    8. About certificate signatures
    9. Certificate-based signatures
    10. Validating digital signatures
    11. Adobe Approved Trust List
    12. Manage trusted identities
  13. Printing
    1. Basic PDF printing tasks
    2. Print Booklets and PDF Portfolios
    3. Advanced PDF print settings
    4. Print to PDF
    5. Printing color PDFs (Acrobat Pro)
    6. Printing PDFs in custom sizes
  14. Accessibility, tags, and reflow
    1. Create and verify PDF accessibility
    2. Accessibility features in PDFs
    3. Reading Order tool for PDFs
    4. Reading PDFs with reflow and accessibility features
    5. Edit document structure with the Content and Tags panels
    6. Creating accessible PDFs
    7. Cloud-based auto-tagging
  15. Searching and indexing
    1. Creating PDF indexes
    2. Searching PDFs
  16. Multimedia and 3D models
    1. Add audio, video, and interactive objects to PDFs
    2. Adding 3D models to PDFs (Acrobat Pro)
    3. Displaying 3D models in PDFs
    4. Interacting with 3D models
    5. Measuring 3D objects in PDFs
    6. Setting 3D views in PDFs
    7. Enable 3D content in PDF
    8. Adding multimedia to PDFs
    9. Commenting on 3D designs in PDFs
    10. Playing video, audio, and multimedia formats in PDFs
    11. Add comments to videos
  17. Print production tools (Acrobat Pro)
    1. Print production tools overview
    2. Printer marks and hairlines
    3. Previewing output
    4. Transparency flattening
    5. Color conversion and ink management
    6. Trapping color
  18. Preflight (Acrobat Pro)
    1. PDF/X-, PDF/A-, and PDF/E-compliant files
    2. Preflight profiles
    3. Advanced preflight inspections
    4. Preflight reports
    5. Viewing preflight results, objects, and resources
    6. Output intents in PDFs
    7. Correcting problem areas with the Preflight tool
    8. Automating document analysis with droplets or preflight actions
    9. Analyzing documents with the Preflight tool
    10. Additional checks in the Preflight tool
    11. Preflight libraries
    12. Preflight variables
  19. Color management
    1. Keeping colors consistent
    2. Color settings
    3. Color-managing documents
    4. Working with color profiles
    5. Understanding color management

Before you begin

We are rolling out a new, more intuitive product experience. If the screen shown here doesn’t match your product interface, switch to the help for your current experience.

About barcodes

Barcode fields in forms convert user entries into scannable patterns that can be interpreted and stored in a database. They are particularly useful when users submit forms on paper or by fax.

Benefits of using barcodes include saving time, avoiding manual reading and recording of responses, and reducing data-entry errors.

Here's a typical barcode workflow:

  1. Form creation: The form author ensures "Automatically Calculate Field Values" is selected in the forms preferences and creates the form in Acrobat with other fields as usual.

  2. Barcode addition: The form author adds the barcode field to capture the required data.

  3. Form distribution: The author enables the form for Acrobat Reader users to save a filled-in copy or if it contains barcode fields and then distributes it to other users.

  4. User submission: Users fill in the form electronically or on paper and submit it.

Received barcode data can be interpreted in the following ways:

  • Forms faxed to a fax server: The form receiver uses Adobe Acrobat Capture® to collect TIFF images from the fax server and place them in an Adobe LiveCycle Barcoded Forms Decoder watched folder (if they own those products).

  • Forms delivered on paper: The form receiver scans paper forms and uses an application like LiveCycle Barcoded Forms Decoder to decode the barcodes within those forms.

Using barcodes streamlines data handling and improves efficiency in form processing.

Note:

Acrobat Capture and LiveCycle Barcoded Forms Decoder are stand-alone products appropriate for enterprise workflows and are sold separately from Acrobat.

Design tips for barcodes

Designing and placing barcodes requires considering usability and available space. For best results, follow these guidelines:

  • Positioning: Place the barcode where it won't get folded in an envelope, and ensure it's far enough from page edges to avoid clipping during printing or faxing.

  • Visibility and Scanning: Position the barcode for easy visibility and scanning. Avoid barcodes wider than 4 inches (10.3 cm) if using a handheld scanner; tall, narrow barcodes work best in this case. Avoid compressing barcode content when using a handheld scanner.

  • Barcode Size: Ensure the barcode size accommodates the data to encode. If the barcode area is too small, it may turn solid gray. Test the completed form before distribution to ensure the barcode area is large enough.

By following these guidelines, you can ensure effective barcode usage and avoid potential issues during form processing.

 

Create, test, and edit barcode fields

To enhance a PDF form barcode, you can create custom scripts using JavaScript. Basic JavaScript knowledge and familiarity with Acrobat-specific JavaScript are necessary for this task. For detailed guidance, learn about Developing Acrobat® Applications Using JavaScript™. Additionally, you can explore various resources available on basic JavaScript to build your understanding further.

Note:

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 and then go to  > Preferences > Forms. Then, select the Automatically calculate field values checkbox and then select Ok.

  2. From the All tools menu, select Prepare a form.

  3. From the left panel, select  Barcode.

  4. Drag a rectangle to define the barcode area, and then double-click the barcode field.

    It opens the Barcode field properties dialog box.

  5. Select Value tab and then do one of the following:

    • Select Encode using, and then select a format (XML or Tab Delimited). Next, select Pick 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 and then select Edit. Next, enter your custom JavaScript code in the JavaScript Editor dialog box.

  6. Under the Options tab:

    1. Select a Symbology option: PDF417, QR Code, or Data Matrix.
    2. Select Compress Data Before Encoding To Barcode option if you want to apply this compression.
      Do not select this option if a handheld scanner is used to capture data from returned forms.
    3. In Decode Condition, choose the type of hardware to process returned forms: Handheld Barcode Scanner, Fax Server, Document Scanner, or Custom.
    4. If necessary, select Custom and enter values for X Dimension, Y/X Ratio, and Error Correction Level.
  7. Make any other changes in the General and Actions tabs. Then close the Barcode Field Properties dialog box.

    JavaScript code is generated automatically to encode the selected fields in the XML or Tab Delimited format. The Barcode Field Properties dialog box closes, and the barcode for which you specified values appears on the form.

    Note:

    If you add a new field to a form after you have created the barcode, it is not automatically included in the data for existing barcodes. However, you can manually include additional data fields in the barcode.

Test a barcode field

  1. Click the Preview button in the toolbar.

  2. Fill in the form. Use sample data that represents the maximum amount of information for each field or that you expect users to enter.
  3. If the barcode field is grayed out, follow either the procedure for resizing the barcode field or for adjusting the content data. 

    Ensure that the barcode field area is large enough to contain the entire incoming data. 

  4. To remove the sample data, from the right panel, select More > Clear form.

  5. Select  > Save.

The barcode form field is now ready for distribution.

Include more data fields in the barcode

  1. From the All tools menu, select Prepare a form.

  2. Double-click the barcode field.
  3. In the Value tab, do one of the following:

    • If Encode Using is selected, select Pick, and select additional form fields to be encoded.

    • If Custom Calculation Script is selected, select Edit, and write more JavaScript to include the additional fields.

After including new data fields in the barcode, ensure that the barcode area is large enough by testing sample data. If the barcode area is grayed out, adjust the barcode size, or text field properties so that the content fits into the barcode area.

Adjust data content to fit in a barcode field

  1. From the All tools menu, select Prepare a form.

  2. Double-click the barcode field, and do any of the following:

    • In the Options tab, select Custom and enter lower values for Error Correction Level and Y/X Ratio.

    • If you are using an Adobe software decoder (available separately), go to the Options tab and select Compress Data Before Encoding To Barcode, but only .

    • In the Value tab, select Tab Delimited rather than XML as the data-encoding format. XML requires more barcode area to encode information than Tab Delimited does.

    • In the Options tab, select a different Symbology option.

    • In the Value tab, click the Pick button, and deselect any fields that don’t need encoding. For example, don’t include fields with redundant information.

    • In the Value tab, enter a custom script that converts user-entered text to either all lowercase or all uppercase characters during the encoding process.

    Note:

    The National Association of Computerized Tax Processors (NACTP) guidelines, used by the United States Internal Revenue Service and state tax agencies, recommend using all uppercase characters for 2D barcode data.

  3. To minimize the amount of barcode area for containing the data, double-click the barcode field, and in the Value 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.)
Note:

Consider creating extra barcode fields in the form and mapping different data to each barcode field.

Set form field navigation

If a PDF document doesn’t have a specified tab order, the default tabbing order is based on the document structure unless the user has deselected the Tab Order option in the Accessibility preferences.

You can change the tabbing order after you create the fields. If you're in form editing mode, you can order the tabs by document structure (default), row, or column. You can also choose the order manually by dragging fields to the Fields panel. If you're not in editing mode, you can change the page properties to order the tabs by row or column. However, you can’t customize the tab order manually.

Set tabbing order in edit mode

  1. From the All tools menu, select Prepare a form.

  2. In the Fields panel on the right, select Sort By > Tab order.

  3. To view the tabbing order for the fields, in the Fields panel, select  > Show tab numbers.

  4. Select one of the following Tab Order options:

    • Order tabs by structureTabs based on the document structure, and follows the order that is set up in the tagging.
    • Order tabs by rowTabs from the upper-left field, moving first left to right and then down, one row at a time.
    • Order tabs by columnTabs from the upper-left field, moving first from top to bottom and then across from left to right, one column at a time.
    • Order tabs manuallyAllows you to drag and drop a field where you want it within the Fields panel. You can’t move a field to a different page, a radio button to another group, or a field to a radio button.
    • Order tabs unspecifiedSpecifies that no tab order is specified. The page properties determine the tab order.

Set tabbing order in Page Properties

  1. If you're in the form editing mode, select the cross button toward the right in the toolbar to exit the mode.

  2. Select  Page thumbnails.

    Or go to  > View > Show/Hide > Side panels > Pages.

    It opens the Page thumbnails panel. 

  3. Right-click a page icon and then select Page properties

  4. Under Tab Order, select one of the following options:

    • Use Row Order: Tabs from the upper-left field, moving first left to right and then down, one row at a time.
    • Use Column OrderTabs from the upper-left field, moving first from top to bottom and then across from left to right, one column at a time.
    • Use Document StructureFor forms with tagged fields, follows the order set up in the tagging.
    • UnspecifiedUses the existing sequence.
  5. Select OK.

 Adobe

Get help faster and easier

New user?

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online