Why coordinate change of first page on spread when reframe second page ?
hi experts
i want reframe spread pages.
after reframe first page when reframe second page change y-axis of first page.
how prevent change first page coordinate?
i using :
var mydocument = app.activedocument;
with(mydocument.viewpreferences)
{
horizontalmeasurementunits = measurementunits.points;
verticalmeasurementunits = measurementunits.points;
}
var mypage = mypages.lastitem();
var myy1 = 0;
var myx1 = 0;
var myy2 = 647.648;
var myx2 = 431.766;
mypage.reframe(coordinatespaces.inner_coordinates, [[myx1 , myy1], [myx2 ,myy2]]);
mydocument.spreads.item(1).allowpageshuffle = false;
var page=mydocument.spreads.item(1).pages.lastitem();
var pages= mydocument.pages.add(locationoptions.after,page);
var mypage=mydocument.spreads.item(1).pages.lastitem();
var myy1 = 0;
var myx1 = 0;
var myy2 = 647.648;
var myx2 = 431.766;
mypage.reframe(coordinatespaces.inner_coordinates, [[myx1 , myy1], [myx2 ,myy2]]);
while x1,y1,x2,y2 same both pages.
thanks;
hi,
not expert 1 knows how can hurt...
trying find logic here gave me headacke, solusion use page.resize() method (more options)
in case maybe:
resize_arr = [widht, height];
page.resize(
coordinatespaces.inner_coordinates,
anchorpoint.center_anchor,
resizemethods.replacing_current_dimensions_with,
resize_arr
);
could help...?
or around this...?
rgds
More discussions in InDesign Scripting
adobe
Comments
Post a Comment