Copy link to clipboard
Copied
Copy link to clipboard
Copied
You should be able to create a menu item (or toolbar button) that is connected to a JavaScript tha will export to the correct location. You will need to get the path of your current document (this.path) and then replace the .pdf with .ps, and set the correct output format and most importantly, set the correct conversion ID in Doc.saveAs() - also, make sure that you are using a privileged context: https://opensource.adobe.com/dc-acrobat-sdk-docs/acrobatsdk/html2015/index.html#t=Acro12_MasterBook%...
Copy link to clipboard
Copied
doc.saveAs("work_vm/" + doc.documentFileName.replace(/.pdf/,".ps"),"com.adobe.acrobat.ps");
I was able to make an item in the menu, but I could not make a button on the quick launch bar, please tell me where you can find information about this
Copy link to clipboard
Copied
Copy link to clipboard
Copied
If you havea working menu item, you can create a custom command that executes that menu item (I have an old blog post that describes how t do that: http://khkonsulting.com/2015/04/create-custom-tools-in-adobe-acrobat-dc-pro/). A custom command can then be added to the quick toolbar.
Copy link to clipboard
Copied
In this article Thom describes how to execute a menu item with a real toolbar button: https://acrobatusers.com/tutorials/executing_menu_items_from_javascript/