foxit.pdf.DRMEncryptData Class Reference

Inherits SystemIDisposable.

Public Member Functions

 DRMEncryptData (bool is_encrypt_metadata, string sub_filter, SecurityHandler.CipherType cipher, int key_length, bool is_owner, int user_permissions)
 Constructor, with parameters. More...
 
 DRMEncryptData ()
 Constructor.

 
 DRMEncryptData (DRMEncryptData other)
 Constructor, with another DRMEncryptData object. More...
 
void Set (bool is_encrypt_metadata, string sub_filter, SecurityHandler.CipherType cipher, int key_length, bool is_owner, int user_permissions)
 Set value. More...
 

Detailed Description

This class represents some data used for class DRMSecurityHandler.

Constructor & Destructor Documentation

◆ DRMEncryptData() [1/2]

foxit.pdf.DRMEncryptData.DRMEncryptData ( bool  is_encrypt_metadata,
string  sub_filter,
SecurityHandler.CipherType  cipher,
int  key_length,
bool  is_owner,
int  user_permissions 
)
inline

Constructor, with parameters.

Parameters
is_encrypt_metadatatrue means to encrypt metadata, and false means not to encrypt metadata
sub_filterThe sub filter of PDF document.
cipherCipher type. Please refer to e_CipherXXX values and this should be one of these values except e_CipherNone.
key_lengthThe key length, in bytes.
For e_CipherRC4 cipher, this value should be between 5 and 16.
For e_CipherAES cipher, this value should be 16 or 32.
is_ownertrue means current user is owner, and false means current user is not owner.
user_permissionsThe user permissions. Please refer to e_PermXXX values and this should be one or combination of these values.

◆ DRMEncryptData() [2/2]

foxit.pdf.DRMEncryptData.DRMEncryptData ( DRMEncryptData  other)
inline

Constructor, with another DRMEncryptData object.

Parameters
otherAnother DRMEncryptData object.

Member Function Documentation

◆ Set()

void foxit.pdf.DRMEncryptData.Set ( bool  is_encrypt_metadata,
string  sub_filter,
SecurityHandler.CipherType  cipher,
int  key_length,
bool  is_owner,
int  user_permissions 
)
inline

Set value.

Parameters
is_encrypt_metadatatrue means to encrypt metadata, and false means not to encrypt metadata
sub_filterThe sub filter of PDF document.
cipherCipher type. Please refer to e_CipherXXX values and this should be one of these values except e_CipherNone.
key_lengthThe key length, in bytes.
For e_CipherRC4 cipher, this value should be between 5 and 16.
For e_CipherAES cipher, this value should be 16 or 32.
is_ownertrue means current user is owner, and false means current user is not owner.
user_permissionsThe user permissions. Please refer to e_PermXXX values and this should be one or combination of these values.
Returns
None.

Foxit Software Corporation Logo
@2018 Foxit Software Incorporated. All rights reserved.