From the All tools menu, select Prepare a form.
- What's new
-
Get started
- Learn the basics
- Access the app
- Preferences and settings
-
Use Acrobat AI
- Get started with generative AI
- Set up generative AI in Acrobat
- Understand usage and policies
-
Create documents
- Create PDFs
- Explore advanced conversion settings
- Scan documents to PDFs
- Optimize PDFs
-
Edit documents
- Edit text in PDFs
- Edit images or objects
- Enhance PDFs with Adobe Express
- Use links and attachments
- Edit PDF properties
- Organize pages
- Add backgrounds and watermarks
- Use headers and footers
- Apply bates numbering
- Combine files
-
E-sign documents
- Learn about Acrobat signatures
- Request e-signatures
- Manage digital signatures
- Fill and sign documents
-
Work with PDF forms
- Explore PDF forms basics
- Create PDF forms
- Fill and sign PDF forms
- Customize PDF form fields
- Insert barcodes in PDFs
- Share PDF forms
-
Share and review documents
- Share documents
- Manage comment preferences
-
Review documents
- Insert text
- Replace text
- Add attachments as comments
- Add comments in callouts
- Add comments to selected text or images
- Add markups
- Change markup colors
- Add comments using sticky notes or chat bubbles
- Add comments in text boxes
- Add comments to videos in Acrobat Pro
- Add shapes, lines, and freeform drawings
- Group and ungroup comments
- Join PDF reviews
- Use stamps
- Manage reviews
-
Protect documents
- Protect with passwords
- Encrypt with certificates
- Manage digital IDs
-
Redact PDFs
- About redacting and sanitizing PDFs in Acrobat Pro
- Types of redactable data
- Redact sensitive content in Acrobat Pro
- Search and redact text in Acrobat Pro
- Text redaction properties in Acrobat Pro
- Redact images in PDFs
- Change redaction appearance in Acrobat Pro
- Sanitize PDFs in Acrobat Pro
- Apply multiple codes to a redaction in Acrobat Pro
- Create redaction codes and code sets in Acrobat Pro
- Edit redaction codes and code sets in Acrobat Pro
- Use protected view
- Mitigate security risks
-
Print documents
- Set up and print PDFs
- Use secure and special print mode
- Print duplex and multi-page document
- Print booklets, posters, and banners
- Save and export documents
- Create accessible documents
-
Troubleshoot
- Install and update issues
- Performance issues
- PDF viewing and editing issues
- Print and scan issues
Add and test barcode fields
Learn how to add and test barcode fields in Acrobat using JavaScript for enhanced PDF forms.
Enable automatic calculations. Go to Preferences > Forms, select the Automatically calculate field values checkbox, and then select OK.
Add barcode fields
Select Barcode from the left pane.
Drag a rectangle to define the barcode area, switch to the Select tool, and then double-click the barcode field.
In the Barcode Field Properties dialog box, configure the following:
On the Value tab:
- For Encode Using, select a format (XML or Tab Delimited). Select Pick and choose the form fields to encode in the barcode.
- Or, select Custom calculation script and then select Edit. Next, enter your custom JavaScript code in the JavaScript Editor dialog box.
On the Options tab:
- For Symbology, select PDF417, QR Code, or Data Matrix.
- Choose a Decode Condition based on how the form will be processed.
If you insert a maximum-sized barcode, adjusting the cell size or decode condition may cause it to extend beyond the page. To prevent this, choose the appropriate cell size and decode settings.
Select Close to add the barcode field to your form.
JavaScript automatically encodes selected fields in XML or Tab-Delimited format. If you add a new field after creating the barcode, it won't be included by default, but you can manually add it.
To efficiently encode data in PDF form barcodes, you can customize them using JavaScript. A basic understanding of JavaScript and Acrobat-specific scripting is recommended. For more advanced capabilities, explore resources on developing Acrobat applications with JavaScript.
Test barcode fields
From the Prepare a form tools pane, select Preview.
Fill out the form fields with sample data. Use realistic data that represents what users might enter.
Check if the barcode field displays properly:
- If it's grayed out, you may need to resize the field or adjust data settings.
- Ensure the barcode area is large enough to contain all the encoded data.
To clear the sample data, select More > Clear Form in the right pane.
Exit preview mode and save your form.