Skip to main content
Participant
January 29, 2020
Question

Integration of an Api for dynamic QR Codes in Indesign

  • January 29, 2020
  • 4 replies
  • 2447 views

Hello,

Is it possible to generate dynamic QR Codes via an API interface with Indesign?

We have created a PDF template and have some input fields. These input fields should generate a QR Code.

Has anyone ever implemented this before?

This topic has been closed for replies.

4 replies

Jongware
Community Expert
Community Expert
January 30, 2020

You now have a PDF template but you want InDesign to create its QR codes?

 

I get the impression that you want to send that PDF around, to have others fill in the input fields and they'd actually see the QR codes appear in that same PDF. That is unrelated to InDesign.

(Not that it could not be made to work. But you'd have to send InDesign around too, with your PDF, as "engine" to run your program. Adobe would not like that.)

 

How to run Javascript -- or anything else related -- inside a PDF is better asked in the Acrobat forum: https://community.adobe.com/t5/acrobat/bd-p/acrobat?page=1&sort=latest_replies&filter=all

Colin Flashman
Community Expert
Community Expert
January 30, 2020

It can be done with javascript as Rob mentions. I have used it in one of my older scripts - https://colecandoo.com/scripts/ (look for Data Merge Colored QR Code Maker).

Otherwise, there is an SDK available here: https://www.adobe.com/devnet/indesign/sdk.html

Rob's link is for an older version of InDesign but this API - both hosted by PublishingX - is for CC 2020: https://www.indesignjs.de/extendscriptAPI/indesign-latest/#about.html

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!
brian_p_dts
Community Expert
Community Expert
January 29, 2020
rob day
Community Expert
Community Expert
January 29, 2020

Do you mean via scripting? You can script QR code creation, but you would have to build the dialog in the script.

 

Here’s the Javascript API

 

https://www.indesignjs.de/extendscriptAPI/indesign10/#Document.html#d1e47196__d1e51535