|
Foxit PDF SDK
|
Public Member Functions | |
| CreateContext (filter, sub_filter, encrypt_info) | |
| A callback function used to create context for encryption and decryption. More... | |
| ReleaseContext (context) GetUserPermissions(context | |
| A callback function used to release the context for encryption and decryption. More... | |
This class represents a callback object for custom decryption and encryption. If user wants to use custom security callback, user should inherit this callback class and implement the pure virtual functions (as callback functions), and then register the custom security callback object to Foxit PDF SDK by function FSDK.Library.RegisterSecurityCallback with with any custom filter name (following the PDF name conventions). Function FSDK.Library.UnregisterSecurityCallback can be called to unregister the security callback object with the registered filter name.
|
inline |
A callback function used to create context for encryption and decryption.
| [in] | filter | The filter name of the custom security callback object. |
| [in] | sub_filter | The sub filter name that specifies the syntax of the encryption dictionary contents. |
| [in] | encrypt_info | The encryption information of the PDF document. |
| FSDK.CustomSecurityCallback.ReleaseContext | ( | context | ) |
A callback function used to release the context for encryption and decryption.
| [in] | context | The context for encryption and decryption, returned by callback function FSDK.CustomSecurityCallback.CreateContext. |
| [in] | context | The context for encryption and decryption, returned by callback function FSDK.CustomSecurityCallback.CreateContext. |
| [in] | user_permission | Original permission settings of the document. Please refer to values starting from FSDK.PDFDoc.e_PermPrint and this would be one or combination of these values. |