(PECL haru >= 0.0.1)
HaruDoc::setEncryptionMode — Set encryption mode for the document
Defines encryption mode for the document. The encryption mode cannot be set before setting the password.
The encryption mode to use. Can be one of the following:
The encryption key length in bytes. This parameter is optional and used only when mode is HaruDoc::ENCRYPT_R3. The default value is 5 (40bit).
Returns TRUE on success.
Throws HaruException on error.