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

Apply color other than black to QR Code from datamerge

Community Beginner ,
Jul 27, 2023 Jul 27, 2023

Hello!

I have a ticket that has a QR code on it that the customer wants in their color (blue). When using datamerge, the QR codes are colored black. The DB has 25,000 records. Anyone have a Javascript to accomplish this? 

 

Thanks in advance!

 

Bud

TOPICS
Scripting
3.6K
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

correct answers 1 Correct answer

Community Expert , Jul 27, 2023 Jul 27, 2023

I had a look into this just now, @budatlitho, and it isn't as easy as it should be. Even using a script to set the color after merging is difficult. I think the most practical way is to use this masking technique to apply the color. It seems complicated, but once you understand what it's doing you can work with it fairly easily in most cases. I've made a demo .indd and a .csv which I've attached to this post if you want to see how I set it up. I used an Object Style for each component of the tec

...
Translate
Community Expert ,
Nov 01, 2025 Nov 01, 2025
LATEST

So I checked if this flaw is still present in the brave new version of Adobe InDesign 2026, but too bad... it isn't. And the QR dialogue still initiates with the least used Text setting (in stead of the commonly used URL). So it has been left untouched – again. 

 

I tried all kinds of hacks, by setting up a colored QR code, using some bogus address first, and coloring it. But you can't delete the bogus address afterwards to use the code as a placeholder for datamerge, because the OK button requires some initial content. Then I treid deleting the whole QR image from the frame, but then the datamerge process creates a brand new code in black again...

And Object Styles can't access the typical Fill color of the QR code either.

 

So it's still a matter of scripting, afterwards. 

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