Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 80307

Re: Re: Script need to change trim size and margin

$
0
0

Hi,

 

May the below code also helpful,

 

as you mention as "custom" document size:

 

app.activeDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.inches;
app.activeDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.inches;

var myPages = app.activeDocument.pages;
alert(myPages.length)

for(i=0; i<myPages.length; i++)
{    myPages[i].marginPreferences.bottom = "0.25 in";    myPages[i].marginPreferences.top = "0.25 in";    myPages[i].marginPreferences.left = "0.25 in";    myPages[i].marginPreferences.right = "0.25 in";    }

 

 

Regards

Siraj


Viewing all articles
Browse latest Browse all 80307

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>