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.