Copy link to clipboard
Copied
Hi,
I need to find the existing QR code and update the new URL. Could you please guide me to proceed to go further steps? I tried the below code and can't complete it.
var mydoc = app.activeDocument;
var mypg = mydoc.pages;
for(var p=0; p<mypg.length; p++){
var rect = mypg[p].rectangles;
for(var r=0; r<rect.length; r++){
var myeps = rect[r].epss[0] //can't find further validation, lack from here
if(String(myeps)=="[object EPS]"){
myeps.createHyperlinkQRCode("https://www.[new website]")
}
}
}
Thanks,
Selva
Hi @selvam214 ,
The same question you've already asked & it has been asnwered as well.
https://community.adobe.com/t5/indesign/match-url-and-change-in-qr-code/m-p/11509139#M399586
If there is further challange with this please elaborate a little bit.
Thanks
Sunil
Copy link to clipboard
Copied
Hi @selvam214 ,
The same question you've already asked & it has been asnwered as well.
https://community.adobe.com/t5/indesign/match-url-and-change-in-qr-code/m-p/11509139#M399586
If there is further challange with this please elaborate a little bit.
Thanks
Sunil
Copy link to clipboard
Copied
Yes, Sunil. I forgot it. Thanks for reminding me.
Copy link to clipboard
Copied
This snippet will do the job :
var myDoc = app.documents[0];
for(var i = 0; i < myDoc.pages.length; i++){
for(var p = 0; p < myDoc.pages[i].pageItems.length; p++){
if(myDoc.pages[i].pageItems[p].epss.length > 0){
myDoc.pages[i].pageItems[p].createHyperlinkQRCode("https://www.[new website]");
}
}
}
Sunil