IPXC_Document::SetStdEncryption Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
 
{{#customTitle:IPXC_Document::SetStdEncryption Method}}
 
{{#customTitle:IPXC_Document::SetStdEncryption Method}}
 
{{#parentPage:PXV:IPXC_Document#Methods|SetStdEncryption|method}}
 
{{#parentPage:PXV:IPXC_Document#Methods|SetStdEncryption|method}}
{{ToWrite}}
 
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
Sets the encryption of the document.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT SetStdEncryption([in]  PXC_StdEncryptionMehtod  Method,
+
<pre class="brush:cpp;gutter:false">HRESULT SetStdEncryption([in]  PXC_StdEncryptionMehtod  nMethod,
                         [in]  VARIANT_BOOL            EncryptMetadata,
+
                         [in]  VARIANT_BOOL            bEncryptMetadata,
                         [in]  ULONG                    Permission,
+
                         [in]  ULONG                    nPermission,
                         [in]  BSTR                    UserPassword,
+
                         [in]  BSTR                    sUserPassword,
                         [in]  BSTR                    OwnerPassword);</pre>
+
                         [in]  BSTR                    sOwnerPassword);</pre>
  
 
== Parameters ==
 
== Parameters ==
;Method
+
;nMethod
:[in]  Value of [[PXV:PXC_StdEncryptionMehtod|PXC_StdEncryptionMehtod]].
+
:[in]  Value of [[PXV:PXC_StdEncryptionMehtod|PXC_StdEncryptionMehtod]] containing the type of the encryption.
;EncryptMetadata
+
;bEncryptMetadata
:[in]  Value of VARIANT_BOOL.
+
:[in]  Value of VARIANT_BOOL representing whether the metadata should be encrypted.
;Permission
+
;nPermission
:[in]  Value of ULONG.
+
:[in]  Value of ULONG containing the [[PXV:PXC_SecurityPermissions|security permissions flags]].
;UserPassword
+
;sUserPassword
:[in]  Value of BSTR.
+
:[in]  Value of BSTR containing the user's password.
;OwnerPassword
+
;sOwnerPassword
:[in]  Value of BSTR.
+
:[in]  Value of BSTR containing the owner's password.
  
 
== Return Value ==
 
== Return Value ==

Latest revision as of 08:21, 2 November 2016


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.

See Also

IPXC_Document