Cpdf::setEncryption
set the encryption of the document can be used to turn it on and/or set the passwords which it will have.
also the functions that the user will have are set here, such as print, modify, add
Signature
public function setEncryption([string
$userPass = '',
[string
$ownerPass = '',
[array
$pc = ]]] )
Parameters
$userPass
— string$ownerPass
— string$pc
— array