3 Replies Latest reply on Aug 24, 2010 3:00 PM by Muppet Mark-QAl63s

    rectangle.place withproperties to position new image in rectangle?




      I'm trying to write a script for InDesign (javascript) that will swap out an image within a rectangle. I've gotten this to work successfully, so now I want to go one step further and position the image within the rectangle. I've seen that there is a WithProperties option you can use, but I haven't been able to find a good example of how to use this, or maybe this isn't the way to do it. I just need a way to specify the offset values of the image relative to the rectangle or Group coordinates. Or maybe it needs to be relative to the the entire spread?


      Also, I need to be able to scale the image up or down to make it fit better within the rectangle. Does anyone know of an easy way to accomplish this?


      Thanks in advance!!