×
Menu
Index

Encryption

 
 
  • Encryption( mode, keylen ) => defines encryption mode for PDF Reader.
 
 
Mode (numeric) : defines encryption mode, valid parameters are 2 for 40 bit encryption, and 3 for 128 bit encryption. 
 
Keylen (numeric) : defines key length for encryption, if mode is 2 (40 bit) key length must be 5, using mode 3 (128 bit) key length can be 5 for 40 bit encryption, or 16 for 128 bit encryption.
 
This method can be called anywhere between Create() and EndDoc() calls, but it MUST be called before calling the Password method.