Error processing SSI file
LEADTOOLS PDF (Leadtools.Pdf assembly)

Show in webframe

Password Property (PDFFile)






Gets or sets the password associated with this PDFFile.
Syntax
public string Password {get; set;}
'Declaration
 
Public Property Password As String
'Usage
 
Dim instance As PDFFile
Dim value As String
 
instance.Password = value
 
value = instance.Password
public:
property String^ Password {
   String^ get();
   void set (    String^ value);
}

Property Value

A System.String that contains the password to use when loading this PDFFile object (if the file is encrypted).
Remarks

You can also set the password directly when creating a PDFFile object by calling the PDFFile(string fileName, string password) constructor.

Some PDF files are encrypted and require a password before they can be used. Encrypted files must have the Password property set to the correct value before using the other properties and methods of the object. Use IsEncrypted to determine whether the PDF file is encrypted and requires a password.

After setting the filename (and optional password), call the Load method to populate the PDFFile object's DocumentProperties and Pages properties with the correct values. Or use any of the other file feature functions supported by this class.

PDF file passwords can be no more than 64 ASCII characters. LEADTOOLS will automatically truncate and convert the password string to ASCII if necessary. Set the maximum password length by setting the PDFDocument.MaximumPasswordLength constant.

Example

For an example, refer to PDFFile.

Requirements

Target Platforms

See Also

Reference

PDFFile Class
PDFFile Members

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