How to Fix Barcodes Not Appearing in a Fillable PDF
Question details
The user is trying to determine why barcode placeholders in a fillable PDF form remain blank or do not generate the expected barcode image after the form fields are completed.

- Product
- PDF Editor
- Device & OS
- not provided
- Scenario
- Completing a dynamic fillable PDF form that is designed to generate a barcode based on the data entered by the user.
- Observed behavior
- The barcode placeholder is visible on the document, but the actual barcode fails to generate and appear after the required form data is filled out.
Ensure that JavaScript is enabled in your PDF reader, as dynamic barcode generation in PDF forms heavily relies on background JavaScript execution.
Enable JavaScript in Your PDF Reader
JavaScript must be enabled for the PDF to process your entered data and dynamically generate the barcode image.
Many interactive PDF forms use embedded scripts to convert the text you type into a scannable 2D barcode. If your application has JavaScript disabled for security reasons, the barcode will not generate.
Open your PDF reader, click on 'Edit' in the top menu bar, and select 'Preferences' from the dropdown menu.
In the left-hand category pane of the Preferences window, find and click on 'JavaScript'.
Check the box next to 'Enable Acrobat JavaScript' and click 'OK' at the bottom to save your changes. You may need to close and reopen the PDF for the changes to take effect.

Open the PDF in a Fully Supported Application
Using web browsers or basic PDF viewers can prevent complex form features like barcodes from functioning correctly.
Verify Document Security Permissions
Restricted permissions can prevent form fields from functioning and block scripts from generating the barcode.
Fill and Manage PDF Forms Easily with WPS Office
WPS PDF provides a smooth, reliable environment for reading, filling out, and printing interactive PDF forms without complex configuration issues. Enjoy a fast, lightweight PDF experience included with WPS Office.
- 1. Install WPS Office: Download and install the free WPS Office suite from the official website to access the built-in WPS PDF tool.
- 2. Open Your Fillable PDF: Launch WPS Office, select 'Open', and browse your files to select the fillable PDF form you need to complete.
- 3. Fill and Save the Form: Click directly into the form fields to type your information. Once completed, go to 'File' > 'Save As' to store your filled document securely.

Frequently Asked Questions
Do all PDF readers support automatic barcode generation?
No. Automatic barcode generation in fillable forms often relies on specific JavaScript engines and XFA form architecture. While standard form filling is widely supported, complex barcode generation usually requires advanced PDF software like Adobe Acrobat or fully-featured desktop readers.
Why does my barcode just look like a solid gray box?
A gray box usually indicates that the barcode placeholder is visible, but the background script required to encode your entered data into the barcode image has not run. This is typically resolved by enabling JavaScript in your reader's preferences.
Will printing the form to PDF lock the generated barcode in place?
Yes. If the barcode generates successfully and you use a 'Print to PDF' feature, it flattens the document. The barcode is saved as a static image, ensuring it remains visible and scannable regardless of what software the recipient uses to open the file.




