My document have 300 spreads. I have placed pdf through script in the required template.
I need to move verso [left page] placed pdf by x-52, y-30 and recto [right page] placed pdf by x250, y-35 from page ruler origin.
Is any body please provide me the JS code which can move my verso [left page] and recto [right page] rectangles accordingly?
Assuming you have a reference to the pdf's containing frame (because that's what you need to move):
myPage = myPDFframe.parentPage;
moveAmount = myPage.side == PageSideOptions.leftHand ? [52, 30] : [250, 35];