←Select platform

Password Property

Summary
Gets or sets the password to use when loading encrypted files (PDF, DOC, DOCX, XLS, XLSX, etc).
Syntax
C#
VB
Objective-C
C++
Java
public string Password { get; set; } 
Public Property Password As String 
@property (nonatomic, copy, nullable) NSString *password 
public String getPassword() 
public void setPassword(String value) 
public: 
property String^ Password { 
   String^ get(); 
   void set (    String^ ); 
} 

Property Value

The password to use when loading encrypted files. Default value is an empty string.

Remarks

Use an empty string or a null reference to disable the use of a password.

The RasterCodecs.DecryptPassword event can also be used to provide the password necessary to decrypt files.

If the source file is PDF, the password can also be provided using the RasterCodecs.Pdf.Load.Password property.

For more information, refer to Loading Encrypted Files and RasterCodecs.DecryptPassword event.

Example

For an example, refer to RasterCodecs.DecryptPassword.

Requirements

Target Platforms

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

Leadtools.Codecs Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.