How to place and align image in vertical center and left align in the selected frame
Hi I am trying to move the image to vertical center and align left to the selected frame in indesign javascript. But while i try to move move the image.It was moved but it hidden. How to move the image along with its frame using javascript.
For reference, I attached the images before and after!
var myDoc =app.activeDocument;
var mypage = myDoc.pages.item(0);
//var myImg = mypage.place(filesB[0]);
var imgok =app.activeDocument.allGraphics;
app.select(imgok[0]);
var sel = app.selection[0];
myDoc.align(sel , AlignOptions.VERTICAL_CENTERS);

