Skip to main content
Participant
August 3, 2016
Answered

BarCode Acro field

  • August 3, 2016
  • 1 reply
  • 2182 views

Hi, 

I have created a PDF with a (Barcode) form field using Adobe acrobat Pro. The Symbology is (PDF417) and Decode Condition is (Handheld Barcode Scanner). For the Encode Using (Tab Delimited) option, I've picked a particular field from the file. When I populate the acro fields though the JAVA application, it all works fine. But when I take a print out of the filled out pdf and try to scan the barcode with a handheld scanner, the barcode is not recognized. Is there any additional parameter required to recognize the barcode field ?

Thank You

This topic has been closed for replies.
Correct answer George_Johnson

2D bar code fields normally don't work in Reader. It's possible to enable a document so that they work, but you wouldn't be able to modify the document with iText.

The alternative of generating the 2D symbol yourself would be compatible with Reader since you wouldn't be using a bar code field and instead placing the symbol as regular page contents.

1 reply

Inspiring
August 3, 2016

What is the Java application that you're using? It would have to update the field appearances in addition to setting the field values, and you'd have to use Acrobat (not Reader) to open and print the form. If the Java application isn't able to correctly generate the field appearances, you'll need to rely on Acrobat doing that, which is probably what you'll need to do for a 2D bar code field since it relies on JavaScript. An alternative is not to use a bar code field and have the Java application generate an image or graphic of the correct symbol and place it on a page.

Participant
August 3, 2016

Thank you very much for the response George. I'm using iText library to populate the bar code field. Currently, I'm not setting the bar code acro field's appearance though, which I shall rectify. Just one additional question though. If I have to print the pdf using Adobe Reader and subsequently scan the barcode, will either of the solutions you told me above work ? Thank you very much once again.

George_JohnsonCorrect answer
Inspiring
August 3, 2016

2D bar code fields normally don't work in Reader. It's possible to enable a document so that they work, but you wouldn't be able to modify the document with iText.

The alternative of generating the 2D symbol yourself would be compatible with Reader since you wouldn't be using a bar code field and instead placing the symbol as regular page contents.