←Select platform

Password Property

Summary

Gets or sets the password used to open encrypted documents.

Syntax

C#
VB
C++
public string Password { get; set; } 
  
Public Property Password As String 
public: 
property String^ Password { 
   String^ get(); 
   void set (    String^ ); 
} 

Property Value

A System.String that specifies the password to use when opening encrypted documents. The default value is null.

Remarks

Some of the documents opened by the reader such as PDF might be encrypted with a password. To open these documents, you must use one of the following:

  • If the password is known in advance, then simply set it in the Password property of the DocumentReaderLoadOptions instance passed to DocumentReader.Create.

  • If the password is unknown before loading, then set a callback in the GetPasswordCallback property. The reader will invoke this callback when an encrypted document is encountered. You can then prompt the user for the password using a dialog box.

Example

For an example, refer to DocumentReaderLoadOptions.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms.DocumentReaders Assembly