Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@lmmx
Created March 21, 2014 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lmmx/9690728 to your computer and use it in GitHub Desktop.
Save lmmx/9690728 to your computer and use it in GitHub Desktop.
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