Skip to main content
Known Participant
Jan 16, 2025 8:59 PM UTC
Question

How to find and edit QR Codes using scripting

There appears to be several methods available in order to create QR Codes within the Scripting API. What we need is a way to find each QR Code and examine/edit the URL. There apprears to be nothing listed for this within the API documentation. Is there any way to step through the Graphics in each doucment, determine whether or not they are QR Codes, and if they are, to then check/edit the URL? 

47 replies

M S V
Inspiring
Jan 31, 2025 8:38 PM UTC

hi 

looking in the properties of the links in an Indesign document

I've seen then QRCodes generated in Indesign have

the name starting with "QR Codexxxxx" and the status link embedded

so you can make an array of all links and test name and status to find every QR Code

Translate
Robert at ID-Tasker
Legend
Jan 31, 2025 8:53 PM UTC
m1b
Community Expert
Community Expert
Jan 17, 2025 9:43 PM UTC

Hi @Ken Webster, do you create all the QR Codes in-house? Or are they existing QR Codes that come from other sources? It's a strange question, but I'm asking because I can think of possible solutions to this but it only works going forward with newly-created QR Codes that you've made in-house. This is probably a deal-breaker, but you can let me know.

- Mark

Translate
Robert at ID-Tasker
Legend
Jan 17, 2025 9:52 PM UTC

Make them as external files and link? Instead of generating in the InDesign? Of course InDesign can be used to generate them. 

 

Which would be the only sensible solution - till Adobe adds option to re-generate them through scripting. 

 

Translate
Robert at ID-Tasker
Legend
Jan 16, 2025 9:27 PM UTC

 

Translate
Robert at ID-Tasker
Legend
Jan 16, 2025 9:22 PM UTC

Can't check right now - but i think QR codes are stored as Embedded EPS files. 

 

Translate
Known Participant
Jan 16, 2025 9:43 PM UTC

Yes they are.. But we still need a way to determine if the embedded EPS file is a QR Code, and then read the URL string.

Translate
Robert at ID-Tasker
Legend
Jan 16, 2025 10:07 PM UTC

I don't think there is a way to read it back - from a script?

 

Translate