Please enable JavaScript to view this site.

Navigation: Developer Information > Using the Windows 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:

           

Action

value (hexadecimal)


Send email

0x01


View File

0x02


Send to palm

0x04


Set 40 bit encryption

0x08

(Win2PDF Pro)

Set 128 bit encryption

0x10

(Win2PDF Pro)

Enable URL detection

0x20


Delete email

0x40


Print File

0x80


Apply foreground watermark

0x200  

(Win2PDF Pro)

Send email - no user interaction

0x400


Apply background watermark

0x800

(Win2PDF Pro)

Enable JPEG2000 compression

0x1000

(requires Win2PDF 10.0.39 or above)

Set 256 bit encyption

0x2000

(Win2PDF Pro, requires Win2PDF 10.0.39 or above)

 

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, 28, and 256 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.