Skip to content

Instantly share code, notes, and snippets.

@lmmx
Created March 21, 2014 17:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Crops PDF to the actual content boundary, which gives better viewing on printouts etc (i.e. bigger text, less white space in margins). I do this manually all the time and this script sticks it in my help menu. To use in Adobe XI, create a "Privileged" folder to put user scripts like this one in, at root:\Users\(User)\AppData\Roaming\Adobe\Acroba…
app.addMenuItem({cName:"Crop and Print", cParent:"Help", cExec:"for (var p=0;p<this.numPages;p++) { var boxes = ['Art','Bleed','Trim','Crop']; for (b=0;b<4;b++) {this.setPageBoxes({ boxes[b], p, p, this.getPageBox('BBox', p))}};this.print();"});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment