IPXC_Document::AuthorizeWithPassword Method

From PDF XChange PDF SDK
Jump to: navigation, search
Line 3: Line 3:
 
{{#customTitle:IPXC_Document::AuthorizeWithPassword Method}}
 
{{#customTitle:IPXC_Document::AuthorizeWithPassword Method}}
 
{{#parentPage:PXV:IPXC_Document#Methods|AuthorizeWithPassword|method}}
 
{{#parentPage:PXV:IPXC_Document#Methods|AuthorizeWithPassword|method}}
{{ToWrite}}
 
 
{{ToReview}}
 
{{ToReview}}
  

Revision as of 18:39, 25 May 2015


Tries to authorize documents, protected by Standard (Password protection) security handler, with specified password. Password specified as regular Unicode string that will be converted to UTF-8 or default ANSI code page depends of document security revision. If document is not protected by Standard security, the method will fail.

Syntax

HRESULT AuthorizeWithPassword([in]           LPWSTR           pPwd,
                              [out, retval]  PXC_PermStatus*  pStatus);

Parameters

pPwd
[in] Password to authorize.
pStatus
[out, retval] Returns PXC_PermStatus value that specifies if document was successfully authorized or not.

Return Value

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

See Also

IPXC_Document