Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
BarcodeMaker by Teacup Software may offer what you're after:
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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