Doc.setEncryptionMode

Set the encryption mode. As the side effect, ups the version of PDF to 1.4 when the mode is set to HaruEncryptMode.R3

class Doc
HPDF_STATUS
setEncryptionMode
(
HaruEncryptMode mode
,
uint keyLen
)

Parameters

mode HaruEncryptMode

One of the HaruEncryptMode

keyLen uint

Specify the byte length of encryption key. Only valid for HaruEncryptMode.R3. Between 5 (40 bits) and 16 (128 bits) can be specified

Meta