IPXC_Document::SetStdEncryption Method
From PDF XChange PDF SDK
Sets the encryption of the document.
Syntax
HRESULT SetStdEncryption([in] PXC_StdEncryptionMehtod nMethod,
[in] VARIANT_BOOL bEncryptMetadata,
[in] ULONG nPermission,
[in] BSTR sUserPassword,
[in] BSTR sOwnerPassword);
Parameters
- nMethod
- [in] Value of PXC_StdEncryptionMehtod containing the type of the encryption.
- bEncryptMetadata
- [in] Value of VARIANT_BOOL representing whether the metadata should be encrypted.
- nPermission
- [in] Value of ULONG containing the security permissions flags.
- sUserPassword
- [in] Value of BSTR containing the user's password.
- sOwnerPassword
- [in] Value of BSTR containing the owner's password.
Return Value
Returns S_OK if operation was successful or error code in other cases.