Skip to main content
Known Participant
December 23, 2016
Question

Need help cropping pdf using Applescript

  • December 23, 2016
  • 1 reply
  • 536 views

G'day

I've got a large App called Mail Manager, part of which prints out pdf using Acrobat DC, and add 4 text boxes, 2 with barcodes.

Sometimes our clients send large images, with a crop box, and images outside the crop box.

We only want to print what's in the crop box, but to fit the extra 4 text boxes on the image, I have to enlarge its boundaries.

This sometimes reveals (and prints) the extra image components that the sender has not cropped.

I need a way, using Xcode ASObjC, to crop the image before expanding it and adding the 4 text boxes.

The menus in Acrobat DC DO NOT respond to applescript commands, so I can't crop the image.

Is there any way, such as with Java, or ANYTHING, that will crop that darn image, please?

Regards

Santa

This topic has been closed for replies.

1 reply

OzSanta2Author
Known Participant
January 8, 2017

I found that saving a cropped marked PDF AS A TIFF, then re-opening the TIFF in Acrobat, cropped the image to the crop marks.