Property | Type | Description | |
---|---|---|---|
$Ovalue | U entry in pdf document | ||
$Pvalue | O entry in pdf document | ||
$Uvalue | whether document is protected | ||
$enc_obj_id | P entry in pdf document | ||
$encrypted |
Method | Description | |
---|---|---|
SetProtection ( $permissions = [], $user_pass = '', $owner_pass = null ) | Function to set permissions as well as user and owner passwords | |
_Ovalue ( $user_pass, $owner_pass ) | Compute O value | |
_Uvalue ( ) | Compute U value | |
_generateencryptionkey ( $user_pass, $owner_pass, $protection ) | Compute encryption key | |
_md5_16 ( $string ) | Get MD5 as binary string | |
_objectkey ( $n ) | Compute key depending on object number where the encrypted data is stored | |
_putencryption ( ) | ||
_putresources ( ) | ||
_putstream ( $s ) | ************************************************************************** * Private methods * * ************************************************************************** | |
_puttrailer ( ) | ||
_textstring ( $s ) |
public SetProtection ( $permissions = [], $user_pass = '', $owner_pass = null ) |
public _generateencryptionkey ( $user_pass, $owner_pass, $protection ) |
public _objectkey ( $n ) |
public _putstream ( $s ) |