Re: Can Acrobat PDF's be saved as single pages via Applescript
Re: Can Acrobat PDF's be saved as single pages via Applescript
- Subject: Re: Can Acrobat PDF's be saved as single pages via Applescript
- From: Emmanuel Lévy <email@hidden>
- Date: Sat, 07 Jan 2017 16:40:46 +0100
Interested in a solution with Smile ?
Emmanuel
> Le 07 Jan 2017 à 11:29, Brian Christmas <email@hidden> a écrit :
>
>
>
>
> G’day
>
> At the moment, I’m saving individual pages of multi-page PDF’s via the GUI.
>
> It’s slow, but by saving them as TIFFS, then re-opening them, the trim to the crop marks, which for my Clients is essential.
>
> Every second counts, but my efforts at trying tio dsave pages via Applescript have been fruitless, anfd there’s nothing on the net.
>
> I’ve converted a script that saes Documents, but no way it will work.
>
> Anyone know how to do it?
>
> The error trap is that recent Acrobat versions limit the TIFF sizes to international standards, so I trap the error, and save the page as a JPEG.
>
> Regards
>
> Santa
>
> set thePath to ((path to desktop as text) & "Temporary Acrobat TIFFS" & ":")
>
> tell application "Adobe Acrobat"
> activate
> tell document 1
> set tempName to name
> say (count of pages)
> repeat with x from 1 to count of pages
> set eachPage to page x
> tell eachPage
> try
> save to file (thePath & (" Page " & x & " " & tempName)) using conversion "com.adobe.acrobat.tiff"
> on error
> try
> save to file (thePath & (" Page " & x & " " & tempName)) using conversion "com.adobe.acrobat.jpeg"
> on error errmsg
>
> tell application "System Events" to display dialog errmsg
> end try
> end try
> end tell
> end repeat
> end tell
> end tell
>
>
> THE GUI SCRIPT (rather long) Darn, too long to post it.
>
>
>
> _______________________________________________
> 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
_______________________________________________
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