Foxit PDF SDK
|
Public Member Functions | |
def | GetCipherType (document, sub_filter) |
A callback function used to get the cipher type for encryption algorithm. More... | |
def | GetFileID (document, sub_filter) |
A callback function used to get the file identity string. More... | |
def | GetInitialKey (document, sub_filter) |
A callback function used to get the initial key to decrypt the DRM protected document. More... | |
def | GetKeyLength (document, sub_filter) |
A callback function used to get the length of cipher key. More... | |
def | GetSecurityType () |
Get the encryption type of security callback. More... | |
def | GetUserPermissions (document, sub_filter) |
A callback function used to get the current user permissions. More... | |
def | IsOwner (document, sub_filter) |
A callback function used to check if current user is the owner of the PDF document. More... | |
![]() | |
def | Release () |
A callback function used to release current callback object itself. More... | |
This class represents a callback object for Foxit DRM decryption. If user wants to use their own Foxit DRM security callback, user should inherit this callback class and implement the pure virtual functions (as callback functions), and then register their own Foxit DRM security callback object to Foxit PDF SDK by function FoxitPDFSDKPython3.Library.RegisterSecurityCallback with filter "FoxitDRM". Function FoxitPDFSDKPython3.Library.UnregisterSecurityCallback can be called to unregister the security callback object with the registered filter name.
def FoxitPDFSDKPython3.DRMSecurityCallback.GetCipherType | ( | document, | |
sub_filter | |||
) |
A callback function used to get the cipher type for encryption algorithm.
[in] | document | A PDF document object. |
[in] | sub_filter | The sub filter name that specifies the syntax of the encryption dictionary contents. |
def FoxitPDFSDKPython3.DRMSecurityCallback.GetFileID | ( | document, | |
sub_filter | |||
) |
A callback function used to get the file identity string.
[in] | document | A PDF document object. |
[in] | sub_filter | The sub filter name that specifies the syntax of the encryption dictionary contents. |
def FoxitPDFSDKPython3.DRMSecurityCallback.GetInitialKey | ( | document, | |
sub_filter | |||
) |
A callback function used to get the initial key to decrypt the DRM protected document.
[in] | document | A PDF document object. |
[in] | sub_filter | The sub filter name that specifies the syntax of the encryption dictionary contents. |
def FoxitPDFSDKPython3.DRMSecurityCallback.GetKeyLength | ( | document, | |
sub_filter | |||
) |
A callback function used to get the length of cipher key.
[in] | document | A PDF document object. |
[in] | sub_filter | The sub filter name that specifies the syntax of the encryption dictionary contents. |
def FoxitPDFSDKPython3.DRMSecurityCallback.GetSecurityType | ( | ) |
Get the encryption type of security callback.
Reimplemented from FoxitPDFSDKPython3.SecurityCallback.
def FoxitPDFSDKPython3.DRMSecurityCallback.GetUserPermissions | ( | document, | |
sub_filter | |||
) |
A callback function used to get the current user permissions.
[in] | document | A PDF document object. |
[in] | sub_filter | The sub filter name that specifies the syntax of the encryption dictionary contents. |
def FoxitPDFSDKPython3.DRMSecurityCallback.IsOwner | ( | document, | |
sub_filter | |||
) |
A callback function used to check if current user is the owner of the PDF document.
[in] | document | A PDF document object. |
[in] | sub_filter | The sub filter name that specifies the syntax of the encryption dictionary contents. |