Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
8

text field to ean13 barcode Acrobat Pro DC

New Here ,
Mar 22, 2024 Mar 22, 2024

Hello everyone,

I'm a forms enthusiast and I'm looking for a way to put 13 digits in the text field and generate an ean13 barcode. After some research I found this wonderful post by Karl Heinz Kremer, but it was still a little different from what I needed.
EAN/UPC Barcodes in PDF Forms 

I would like to know if there is any way for me to just type the numbers in the field and then after pressing enter it generates the barcode. Or if this wouldn't work because of the "Compatible Input Method" as the post says.

Sorry for my bad english

TOPICS
How to , JavaScript , PDF forms
2.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Mar 22, 2024 Mar 22, 2024

Doing this would be very awkward for the user. The font choosen for the field is the barcode font. This means you can't type regular numbers into the field and see them clearly.   But it could be done by using the validate event to convert the input into the correctly formatted numbers using the function presented in the article. 

Another method would be display a popup dialog for entering the numbers when the user clicks into the field. So use the MouseUp event. 

 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 22, 2024 Mar 22, 2024

Doing this would be very awkward for the user. The font choosen for the field is the barcode font. This means you can't type regular numbers into the field and see them clearly.   But it could be done by using the validate event to convert the input into the correctly formatted numbers using the function presented in the article. 

Another method would be display a popup dialog for entering the numbers when the user clicks into the field. So use the MouseUp event. 

 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 26, 2024 Mar 26, 2024

Hello Thom Parker thanks for the anwser,

After a little more searching I found this post,
BARCODE 128 - possibility of binding 2 data fields to the barcode
Thanks to Steve (I think this is the name of the answer's author), I saw something that might be useful.

Below is a document that I created on livecycle, (I will add more things).

But once again I got into a conflict, a user from my company who only has Adobe Reader installed on his PC is unable to fill out and save this document.

So close but at the same time so far.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 26, 2024 Mar 26, 2024
LATEST

Barcodes are tricky. The Acrobat Barcode field will not update in Reader, unless the PDF has special Reader Enabling. That's why Karl's article is so helpful.  If the barcode can be built with a font in a regular text field, then it will work in Reader. 

However, if you are doing a AEM form you should be asking this question on the AEM forum.  

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines