Skip to content

Instantly share code, notes, and snippets.

@kevinmcox
Created December 13, 2018 21:15
Show Gist options
  • Save kevinmcox/8c126f651345525a0e8ca31efc46f052 to your computer and use it in GitHub Desktop.
Save kevinmcox/8c126f651345525a0e8ca31efc46f052 to your computer and use it in GitHub Desktop.
Adobe Acrobat Action to trim a PDF to the crop box
for (var p=0; p<this.numPages; p++) {
this.setPageBoxes("Crop", p, p, this.getPageBox("Trim", p));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment