IPXC_Document::SetStdEncryption Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
Line 9: Line 9:
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT SetStdEncryption([in]  PXC_StdEncryptionMehtod  nMethod,
+
<pre class="brush:cpp;gutter:false">HRESULT SetStdEncryption([in]  PXC_StdEncryptionMehtod  Method,
                         [in]  VARIANT_BOOL            bEncryptMetadata,
+
                         [in]  VARIANT_BOOL            EncryptMetadata,
                         [in]  ULONG                    nPermission,
+
                         [in]  ULONG                    Permission,
                         [in]  BSTR                    sUserPassword,
+
                         [in]  BSTR                    UserPassword,
                         [in]  BSTR                    sOwnerPassword);</pre>
+
                         [in]  BSTR                    OwnerPassword);</pre>
  
 
== Parameters ==
 
== Parameters ==
;nMethod
+
;Method
 
:[in]  Value of [[PXV:PXC_StdEncryptionMehtod|PXC_StdEncryptionMehtod]].
 
:[in]  Value of [[PXV:PXC_StdEncryptionMehtod|PXC_StdEncryptionMehtod]].
;bEncryptMetadata
+
;EncryptMetadata
 
:[in]  Value of VARIANT_BOOL.
 
:[in]  Value of VARIANT_BOOL.
;nPermission
+
;Permission
 
:[in]  Value of ULONG.
 
:[in]  Value of ULONG.
;sUserPassword
+
;UserPassword
 
:[in]  Value of BSTR.
 
:[in]  Value of BSTR.
;sOwnerPassword
+
;OwnerPassword
 
:[in]  Value of BSTR.
 
:[in]  Value of BSTR.
  

Revision as of 07:01, 12 June 2015


The method of interface of PDF-XChange Editor SDK.

Syntax

HRESULT SetStdEncryption([in]  PXC_StdEncryptionMehtod  Method,
                         [in]  VARIANT_BOOL             EncryptMetadata,
                         [in]  ULONG                    Permission,
                         [in]  BSTR                     UserPassword,
                         [in]  BSTR                     OwnerPassword);

Parameters

Method
[in] Value of PXC_StdEncryptionMehtod.
EncryptMetadata
[in] Value of VARIANT_BOOL.
Permission
[in] Value of ULONG.
UserPassword
[in] Value of BSTR.
OwnerPassword
[in] Value of BSTR.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IPXC_Document