Quantcast
Channel: Adobe Community : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 238792

setPageBoxes + Trim and Bleed

$
0
0

Hello,

 

I’m using Acrobat X prof and I’m trying to set page boxes (crop, trim and bleed) through javascript but the only box I’m able to set/change is the cropbox!

 

This is the code I’m working with and what I run from within the javascript console:

 

var rCrop = this.getPageBox("Crop",this.pageNum);

rCrop[0] += 56.69290161; // Adjust Left Side

rCrop[1] -= 56.69290161; // Adjust Top Side

rCrop[2] -= 56.69290161; // Adjust Right Side

rCrop[3] += 56.69290161; // Adjust Bottom Side

this.setPageBoxes("Crop",this.pageNum,this.pageNum,rCrop);

 

By changing “Crop” in the last row to “Trim” or “Bleed” and re-execute the code I thought I should be able to set those boxes as well?

Eventually I’m going to set all these 3 boxes to different values but for now I’m just trying to set the bleed and trim!

 

Any ideas of  what I’m doing wrong would be much appreciated.

 

Regards

MD


Viewing all articles
Browse latest Browse all 238792

Trending Articles



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