Copy link to clipboard
Copied
Hi,
I need to update the placed file which gets modified externally. For that I need to get id/label/link of the placed file. Please let me know what's the method to do it.
Sample code:
if (app.selection[0]) {
app.selection[0].place(File(myPDFFile);
var mySpread = app.activeDocument.spreads[0].place(File(myPDFFile));
}
There is method update() for the link of the placed graphic.
When the frame holding the graphic is selected:
app.selection[0].graphics[0].itemLink.update();
Also check method relink().
See DOM documentation compiled by Gregor Fellenz:
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Link.html
Regards,
Uwe Laubender
( ACP )
Copy link to clipboard
Copied
There is method update() for the link of the placed graphic.
When the frame holding the graphic is selected:
app.selection[0].graphics[0].itemLink.update();
Also check method relink().
See DOM documentation compiled by Gregor Fellenz:
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Link.html
Regards,
Uwe Laubender
( ACP )