←Select platform

IsDecrypted Property

Summary

Gets a value that indicates whether this document has been decrypted.

Syntax
C#
VB
C++
Java
public bool IsDecrypted {get;} 
Public ReadOnly Property IsDecrypted() As Boolean 
   Get 
public:  
   property bool IsDecrypted 
   { 
      bool get() 
   } 
public boolean isDecrypted() 

Property Value

true if this document has been decrypted; otherwise, false.

Remarks

In most cases, the LEADDocument is ready to use after it has been obtained. However, some documents such as PDF can be encrypted and require a password before it can be parsed and used. Most of the properties and methods of LEADDocument will throw an error if the document has not been decrypted. IsEncrypted can be used to check whether the document is encrypted. 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 Document Library.

Example

For an example, refer to IsEncrypted.

Requirements

Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly