Please enable JavaScript to view this site.

Navigation: Developer Information > Using the registry

Automatically Executing an Application

Scroll Prev Top Next More

You can automatically execute an application after the document is created by creating a string registry value named "Post Action" or "Default Post Action" or "Post Action Nowait" or "Default Post Action Nowait" in any of the standard registry locations.  The application must be specified using the full path name, and the document can be passed to the application by using a "%s" in the command line.  For example, setting "Post Action" to:

 

"C:\Program Files\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" "%s"

 

would launch Acrobat Reader after the document is created.  It is important to enclose the file name with quotation marks since the file may contain spaces.  If "Post Action" or "Post Action Nowait" are used, the registry value is deleted after each document unless the persistent value is set.  If "Default Post Action" or "Default Post Action Nowait" are used, the registry value is not deleted and will apply to all documents.  If "Post Action Nowait" or "Default Post Action Nowait" are used, control returns immedately to Win2PDF and documents continue processing.  Otherwise, Win2PDF waits for the application to close before continuing to process documents.