Skip to main content
Inspiring
January 20, 2021
Question

How to get decode value of UPC barcode using extendscript?

  • January 20, 2021
  • 3 replies
  • 635 views

Hi All,

I have image file that contains two UPC barcodes and need to get the decode values in Illustrator using Extendscript.

Kindly help me to get the decode value.

 

Thanks.

3 replies

New Participant
May 22, 2025

Did you find a solution to your question? I am also looking for some piece of software that will 'read' the bars of a UPC in a tiff or .ai (or .pdf) file and report the results. Thanks

Inspiring
January 20, 2021

There are lots of free/paid barcode reader apps already available for Mac/Windows/Android/iPhone. I suggest throwing your barcode images at one of those—it’ll be a lot quicker and cheaper than writing your own.

durai0607Author
Inspiring
January 22, 2021

Thank you hhas01

I need to get the barcode value within the illustrator application. Is it possible?

Inventsable
Braniac
January 20, 2021

I doubt this is possible but I'd be really curious to see someone attempt it. This would be pretty trivial as a CEP extension with access to NodeJS, but without an internet connection to some library for doing this, I can't see a way for scripting to access the information without tracing it (which provides sloppy results), attempting to clean up the paths into even rectangles, then running some algorithm to decode it manually, in which case that would be a pretty huge undertaking.

durai0607Author
Inspiring
January 22, 2021

Thanks for the information. I will try to get the decoded value of the barcode using the CEP extension. In case, If you know any other information please share it here.