I need to move an image from one page to another...
For example, on page 1, I have one image that needs to shifted to 5th page of the document. Is that possible?
Click on the page 1 image to select it, and run this:
var doc = app.activeDocument;
var r = app.selection; // "r" is the graphic frame containing the image
r.move(doc.pages); // to page "5"
I will suggest the duplicate() method instead of the move() here.
Advantage: the position of the object on page 5 will be same as the original one:
var doc = app.activeDocument; // "r" is the graphic frame containing the image var r = app.selection; //The duplicate() method will maintain position of the object as long it is NOT an anchored object. r.duplicate(doc.pages); //Get rid of the original r.remove();