The Aloaha PDF Suite is able to parse the created PDF for so called embedded commands. That are commands which are written in the original document before printing to the Aloaha PDF Printer and then executed by Aloaha after the PDF File has been generated.
Aloaha allows quite a number of commands such as subject, body, emailto, emailfrom, etc.
In this article we are explaining the command exec (introduced in Version 6.0.215)
If you want that Aloaha execute a command (for example c:\batch\test.bat) then you just write exec: c:\batch\test.bat in your original document and print it to Aloaha.
Lets say you need to pass parameters to the above commands. Even that is possible with placeholder %0 to %10
For example you could pass the word Hello World directly in the exec command line or you define Hello World as: epara1: Hello World
You then write as exec command: exec: c:\batch\test.bat %1
A special meaning has placeholder %pdf%. That placeholder ALWAYS contains the path to the generated PDF document.
The command we are explaining here is a bit dangerous since everyone could execute something with just a print to the Aloaha PDF Printer.
For that reason you need to enable it with setting HKLM\SOFTWARE\<Wow6432Node>\Aloaha\pdf\CommandLineEnabled to 1
With HKLM\SOFTWARE\<Wow6432Node>\Aloaha\pdf\CommandLineHidden 1 or 0 you can define if the command is executed in a hidden or visible windows
The default timeout value of 60 can be changed in HKLM\SOFTWARE\<Wow6432Node>\Aloaha\pdf\CommandLineTimeOut
You can download the current version HERE