Acrobat PDF cropping script.
Acrobat PDF cropping script.
- Subject: Acrobat PDF cropping script.
- From: Zeenmangm <email@hidden>
- Date: Sun, 08 Jan 2017 17:02:08 -0500
This script has worked very well for me with cropping images in acrobat
Tell application "Adobe Acrobat Pro"
tell active doc
repeat with i from 1 to count of pages
tell page i
set cbox to crop box
set tbox to trim box
set bbox to bleed box
set abox to art box
--set media box to cbox
set media box to tbox
--set media box to bbox
--set media box to abox
end tell
end repeat
end tell
end tell
Sent from my iPad
Regards,
Steve McCarthy
> On Jan 8, 2017, at 3:00 PM, email@hidden wrote:
>
> Send AppleScript-Users mailing list submissions to
> email@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.apple.com/mailman/listinfo/applescript-users
> or, via email, send a message with subject or body 'help' to
> email@hidden
>
> You can reach the person managing the list at
> email@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of AppleScript-Users digest..."
>
>
> Today's Topics:
>
> 1. Re: Can Acrobat PDF's be saved as single pages via
> Applescript (Shane Stanley)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 08 Jan 2017 22:37:42 +1100
> From: Shane Stanley <email@hidden>
> To: AS users <email@hidden>
> Subject: Re: Can Acrobat PDF's be saved as single pages via
> Applescript
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
>> On 8 Jan 2017, at 9:29 pm, Yvan KOENIG <email@hidden> wrote:
>>
>> There is a huge difference.
>> Although they are twice big than files given by the "old" one they display VERY LESS crisp characters.
>
> That's right.
>
> Here's Brian's original summary:
>
>> 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.
>
> In other words, he wants to completely remove any items outside the PDF crop boxes -- and there's no way to do that (with the tools at hand).
>
> The compromise he is using is to make bitmaps of the PDF pages, which *can* be cropped to the crop box. These bitmaps can then be saved in PDFs, to which he can add the other material.
>
> The result is much bigger files and potentially lower quality, as you have seen. (The quality can be increased by making the files even bigger.)
>
> But there's not much choice -- if he just exports the pages as your code does, the unwanted components will still remain on the page, and will (re)appear when he resets the crop bounds to add the other images. The same thing will happen if he exports them using Acrobat or Smile.
>
> It may be that another workaround would be to first add white boxes to mask the extra area before adding the other items -- that would retain the quality. But I don't know how Brian's adding them, so I don't know how feasible it would be.
>
> (Another workaround would be to place the PDF on a page in InDesign, cropped to the crop box, add the other items, and then export the page as a PDF.)
>
> --
> Shane Stanley <email@hidden>
> <www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> AppleScript-Users mailing list
> email@hidden
> https://lists.apple.com/mailman/listinfo/applescript-users
>
> End of AppleScript-Users Digest, Vol 14, Issue 24
> *************************************************
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden