• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can Acrobat PDF's be saved as single pages via Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can Acrobat PDF's be saved as single pages via Applescript


  • Subject: Can Acrobat PDF's be saved as single pages via Applescript
  • From: Brian Christmas <email@hidden>
  • Date: Sat, 07 Jan 2017 21:29:00 +1100



 
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

  • Follow-Ups:
    • Re: Can Acrobat PDF's be saved as single pages via Applescript
      • From: Brian Christmas <email@hidden>
    • Re: Can Acrobat PDF's be saved as single pages via Applescript
      • From: Yvan KOENIG <email@hidden>
    • Re: Can Acrobat PDF's be saved as single pages via Applescript
      • From: Emmanuel Lévy <email@hidden>
    • Re: Can Acrobat PDF's be saved as single pages via Applescript
      • From: Ray Robertson <email@hidden>
  • Prev by Date: Re: Creating a list of numbers from a Contacts group
  • Next by Date: Re: Can Acrobat PDF's be saved as single pages via Applescript Part 2
  • Previous by thread: A Night for Sal
  • Next by thread: Re: Can Acrobat PDF's be saved as single pages via Applescript Part 2
  • Index(es):
    • Date
    • Thread