This may help you:
So here is a possible approach if you are using ID CS5/5.5:
// . . . // Assumed that a page item 'pi' is already defined // ... // Settings // --- var SCALE_FACTOR = .5, // 50% PAGE_CENTER = true; // use page relative origin? // Compute the transformation origin // (Note: parentPage was not available before CS5) // --- var ref = PAGE_CENTER ? pi.parentPage : pi.parentPage.parent, origin = ref.resolve(AnchorPoint.CENTER_ANCHOR, CoordinateSpaces.PASTEBOARD_COORDINATES); // Scale // --- pi.transform( CoordinateSpaces.INNER_COORDINATES, origin, // absolute coord. in the pasteboard space [SCALE_FACTOR,0,0,SCALE_FACTOR,0,0] );
Thanks, that did the trick. I'm currently using CS4 (although I have CS5 if it becomes necessary), so I modified the code slightly for my needs. Since I have a reference to the page already, I used that instead of using pi.parentPage - for now I can get by with using the page coordinates; when I eventually need to get the spread, I'll either run the code in CS5, or see if I can work out how to reference the spread in CS4.
I still feel a bit at a loss when it comes to working with the different coordinates values, I'll reread your referenced post and any other info I can find and hopefully I'll get it sometime in the future.
Thanks for the help!