These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Automation Convert PDF to PS

shchin2002
Registered: Jan 11 2008
Posts: 9
Answered

I using applescript to create a automation convert using acrobat 7 pro with watch folder feature open pdf and save as ps files run on mac OS 10.3.9 , it very useful for mac user. really save a lot time for me to the PDF convert to Postscript. what about windows base ? any body can tell me how to do the script on acrobat 7 pro on it ?
:)

if anybody want the applescript i do it please let me know i will email to you. but please help to find the resource to scripting acrobat 7 pro at windows.

:)

andrew.chan
Registered: Jan 16 2008
Posts: 2
Hi shchin2002. I am interested in knowing how you write the script as I work in a production room .. and everyday i manually convert PDF to PS on the Mac. Can you teach me how to write those scripts?
shchin2002
Registered: Jan 11 2008
Posts: 9
andrew.Chan,

may i know which platform you are using Mac OS 9 or Mac OS X 10.3.9 ? and acrobat version is the Pro Version ? my script can run only acrobat 7 pro or acrobat 8 pro with mac os x 10.3.9 or above . you also need the apple script studio from the apple developer cd

here are the script for you .
note for script on 1st, 2nd 3rd line you need to create the folder at the fixed area.

Mac OS X HD=>Users=>XXX=>Documents=>Job_Process=>PDF_to_PS
Cut from here
-----------------------------------
property PSsourceFolder : "Mac OS X HD:Users:xxx:Documents:Job_Process:PDF_to_PS"
property EPSsourceFolder : "Mac OS X HD:Users:xxx:Documents:Job_Process:PDF_to_EPS"
property processedFolder : "Mac OS X HD:Users:xxx:Documents:Job_Process:Completed_Job"
property OutputFolder : "Mac OS X HD:Users:xxx:Documents:Job_Process:Output_Job:"

display dialog the "Automation PDF Convertion to Postscript & EPS "on PS_Convertion()
tell application "Finder"
set PSfilesToProcess to every file in folder PSsourceFolder whose file type is "PDF "
end tell
repeat with currentFile in PSfilesToProcess
set currentFileName to name of currentFile
set currentFileShortName to characters 1 thru -5 of currentFileName
set PSFileName to (currentFileShortName & ".ps") as string
set PSFilePath to (OutputFolder & PSFileName) as string
tell application "Adobe Acrobat Professional"
open currentFile
save document currentFileName to file PSFilePath using PostScript Conversion with embedded fonts, images, preview, separations and annotation without binary given postScript level:3
close document currentFileName
end tell
tell application "Finder"
move currentFile to processedFolder with replacing
end tell
end repeat
end PS_Convertion

on EPS_Convertion()

tell application "Finder"
set EPSfilesToProcess to every file in folder EPSsourceFolder whose file type is "PDF "
end tell
repeat with currentFile in EPSfilesToProcess
set currentFileName to name of currentFile
set currentFileShortName to characters 1 thru -5 of currentFileName
set EPSFileName to (currentFileShortName & ".eps") as string
set EPSFilePath to (OutputFolder & EPSFileName) as string
tell application "Adobe Acrobat Professional"
open currentFile
save document currentFileName to file EPSFilePath using EPS Conversion with embedded fonts, images, preview, separations and annotation without binary given postScript level:3
close document currentFileName
end tell
tell application "Finder"
move currentFile to processedFolder with replacing
end tell

end repeat
end EPS_Convertion


repeat
PS_Convertion()
EPS_Convertion()
end repeat
shchin2002
Registered: Jan 11 2008
Posts: 9
I hope some body can help me to find the resource to scripting acrobat 7 pro at windows.
We paid for Acrobat 7 Pro but we don't want to extra cost for automation workflow too high for us to using it.
andrew.chan
Registered: Jan 16 2008
Posts: 2
Thank you.. i will try it out on my mac 10.4.11 with acrobat 7 pro.