Error processing SSI file
LEADTOOLS Leadtools.Documents (Leadtools.Documents assembly)

Show in webframe

Decrypt Method






String containing the password phrase to decrypt this document.
Decrypt this document using the specified password.
Syntax
public bool Decrypt( 
   string password
)
'Declaration
 
Public Function Decrypt( _
   ByVal password As String _
) As Boolean
'Usage
 
Dim instance As Document
Dim password As String
Dim value As Boolean
 
value = instance.Decrypt(password)
public boolean decrypt(String password)
            
public:
bool Decrypt( 
   String^ password
) 

Parameters

password
String containing the password phrase to decrypt this document.
Remarks

In most cases, the Document is ready to use after it has been obtained. However, some documents such as PDF can be encrypted and required a password before it can be parsed and used. Most of the properties and methods of Document will throw an error if the document has not been decrypted. IsEncrypted can be used to check if the document is encrypted and if so, Decrypt must be called with a password obtained from the user to unlock the document. When that happens, the value of IsDecrypted becomes true and the document is ready to be used. Note that IsEncrypted will stay true to indicate the original state of the document.

For more information, refer to Loading Encrypted Files Using the Documents Library.

Example

For an example, refer to IsEncrypted.

Requirements

Target Platforms

See Also

Reference

Document Class
Document Members

Error processing SSI file
   Leadtools.Documents requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features