Participant
March 27, 2026
Answered
Update the linked PDFs page with JSX script
- March 27, 2026
- 1 reply
- 24 views
I’m writing an InDesign script using JSX. I want to loop through all frames and check if they have specific script labels set, which I then want to use to change the page of the linked PDF file. I can do all the steps outside the last one.
How to use a JSX script to update a frame’s linked PDF’s page?
var allframes = app.activeDocument.allPageItems;
for (i = 0; i < allframes.length; i++) {
// Pseudo code of the part I need help with:
allframes[i].updateImportedPage(4)
}
