Please enable JavaScript to view this site.

Navigation: Developer Information > Using the registry

Enabling encryption, e-mail, view, print, and watermark PDF Options

Scroll Prev Top Next More

You can create a DWORD value in the registry at any of the standard registry locations to control actions to be taken after the document is created.  The value is named "file options", and its value can be a combination of the following values:



value (hexadecimal)

Send email


View File


Send to palm


Set 40 bit encryption


(Win2PDF Pro)

Set 128 bit encryption


(Win2PDF Pro)

Enable URL detection


Delete email


Print File


Apply foreground watermark


(Win2PDF Pro)

Send email - no user interaction


(requires Win2PDF Mail Helper application)

Apply background watermark


(Win2PDF Pro)


The values can be added together, so if you wanted to send e-mail, enable URL detection, and delete the file after sending you would set "file options" to 0x61 hexadecimal.  The 40 and 128 bit encryption options are only valid for Win2PDF Pro.  All values are deleted after each document is created unless the "persistent" registry value is set.


When the "View File" or "Print File" options are enabled, the file is opened in the default file viewer specified by standard Windows file associations.  


When "Print File" is enabled, the file is sent to the printer named by a string registry value named "PDFPrintToName" or "PDFDefaultPrintToName" at one of the standard registry locations.  The "PDFPrintToName" is automatically deleted after each job, and the "PDFDefaultPrintToName" is persistent.  If "PDFPrintToName" or "PDFDefaultPrintToName" are not present, the file is printed on the default Windows printer.