Hi,
I’ve been using a script to crop PDF’s with Acrobat 5.0 and it’s worked perfectly for quite some time now. The only problem that I have is that I need the end result to be a PDF compatible with Acrobat 4.0. When I crop using Acrobat 5.0, it saves the PDF to be compatible only with 5.0. I tried changing the script to use Acrobat 4.0 to crop (I even changed the command line to “set bounds of PDPage 1 of…”), but it won’t seem to do the same thing. I think it might be because I’m negatively cropping my pages (creating more white space around the sides and top), and maybe only Acrobat 5.0 can crop like that? For now, I have to save the cropped PDF as a PostScript and distill it for it to be 4.0 compatible. This is obviously more time consuming than I want it to be (since I usually deal with a large number of PDF’s). Does anyone know if I can change the compatibility of the PDF, or at least have applescript save the cropped PDF as a PostScript into a watched folder for Distiller? Your help would be most appreciated!
Here’s my code:
on adding folder items to this_folder after receiving added_items
set dtFolder to (path to desktop as string)
set inProgress to (dtFolder & "Cropping:")
set doneFolder to (dtFolder & "Class Crop - Done:")
tell application "Finder"
if not (exists folder inProgress) then
make new folder at folder dtFolder with properties {name:"Cropping"}
end if
if not (exists folder doneFolder) then
make new folder at folder dtFolder with properties {name:"Class Crop - Done"}
end if
end tell
repeat with thisFile in added_items
tell application "Finder"
set fileName to name of thisFile
move thisFile to folder (inProgress)
end tell
tell application "Acrobat™ 5.0"
open (inProgress & fileName)
set bounds of «class page» 1 of document fileName to {927, 1667, -81, 20}
close fileName saving yes
end tell
tell application "Finder"
move file (inProgress & fileName) to folder (doneFolder)
end tell
end repeat
end adding folder items to