Skip to main content
Participant
June 9, 2022
Question

Is there a way to read content of outline objects in Adobe Illustrator using script?

  • June 9, 2022
  • 1 reply
  • 359 views

I have a .ai file which has a layer containing a bunch of nested outline objects (pathItem, compoundPathItems, ClipGroup, etc.). Example - a linear barcode containing rectangular lines with digits below. Is there a way to locate this barcode on the .ai file and read the vetcor image to decode its content ?

This topic has been closed for replies.

1 reply

m1b
Community Expert
Community Expert
June 9, 2022

Hi @K24792546oix6, do you mean a script that can interpret the barcode's vector paths to give you the same answer a barcode scanner would? That's a fun problem and there's no technical reason it couldn't be done. Let me know if that's right.

- Mark

Participant
June 13, 2022

Hi @m1b  - thanks for your response. I basically have an .ai file in which I have to first locate the area where a barcode is present and then replace it with new values. Any suggestions on how best this can be done using scripts?

m1b
Community Expert
Community Expert
June 13, 2022

Okay, why do you need a script? Do you have hundreds of these to do? Do you need to be able to read the barcode first? What barcode format? eg. EAN-13? Are barcodes always same format?

I'll be honest with you—it's a difficult task. But I'm intrigued by the challenge I must admit.

- Mark