Skip to main content
Inspiring
July 1, 2024
Answered

script to run a Action Wizard action

  • July 1, 2024
  • 2 replies
  • 2463 views

I setup a Action Wizard action in Adobe Acrobat Pro, the purpose is to save the PDF as eps.  I hope open a pdf file , then automatically perform actions, how to do with script?

 

This topic has been closed for replies.
Correct answer try67

My purpose is to batch process save as eps, rather than write a script for each PDF.


Right. The batch process takes care of opening and closing the file(s) for you. You don't need to do that in the code.

This is all you need to add:

this.saveAs({cPath: this.path.replace(".pdf", ".eps"), cConvID: "com.adobe.acrobat.eps"});

2 replies

JR Boulay
Community Expert
Community Expert
July 1, 2024
Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
Community Expert
July 1, 2024

Not possible. A script can't run an Action.

try67
Community Expert
Community Expert
July 1, 2024

You can use a script to perform the same action, though, using the saveAs command, but you can't run it on multiple files, as an Action can.

rui huangAuthor
Inspiring
July 2, 2024

script Acrobat is difficult for me,because it don't like Illustrator , can use "#target illustrator" to executing code. I don't know how to write a javascript to open pdf with Acrobat , then save as eps.