Chun Tian (binghe)
Actions, Custom Commands, Preflights and Plugins for Adobe® Acrobat® Pro (XI and DC), writing in JavaScript and C++
Tested on Acrobat® Pro XI, DC (2015) and DC (2017), both Windows and Mac versions.
Use files in "zh-cn" for Acrobat® Pro DC in Simplified Chinese; use files in "en" for Acrobat® Pro DC in English. For Acrobat® Pro in other UI languages, some keywords in the actions may have to be changed. Most of them also work in Acrobat® Pro XI.
The (Custom) Commands are new features since DC 2015, as single-step Actions. They're not supported in XI and prior versions.
The main entry is Action Wizards (动作向导) in Acrobat Pro, where you can import Actions and Custom Commands.
To import a toolset into Acrobat DC (2015 only), simply open that file (*.aaui
). In Acrobat 2017 one can import custom tool sets normally.
NOTE: Some Actions and Commands require special Preflight profiles (in this repository), which must be also imported.
Certain useful tasks are impossible to write in JavaScript, because Adobe didn't expose the related APIs at JS level. In this case, the work can be done by writing plugins in C. One such plugin is in the Plug-ins
folder.
JavaScript files can be directly put into Acrobat's "JavaScripts" folder. Usually they creates new menu entries or toolbar buttons, and they are superior than custom actions as JS code can provide user-defined icons, see Highlights.js
for my first such work.