Leadtools.Forms.DocumentWriters Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
UserPassword Property
See Also 
Leadtools.Forms.DocumentWriters Namespace > PdfDocumentOptions Class : UserPassword Property



Gets or sets the user password value to be used in the resulting PDF document.

Syntax

Visual Basic (Declaration) 
Public Property UserPassword As String
Visual Basic (Usage)Copy Code
Dim instance As PdfDocumentOptions
Dim value As String
 
instance.UserPassword = value
 
value = instance.UserPassword
C# 
public string UserPassword {get; set;}
C++/CLI 
public:
property String^ UserPassword {
   String^ get();
   void set (String^ value);
}

Return Value

A String that contains the user password value to be used. To reset the user password, use either an empty string or a null reference (Nothing in Visual Basic)

Example

For an example, refer to PdfDocumentOptions.

Remarks

The user password is used by PDF viewers to grant or deny viewing the PDF document. For more information, refer to the Protected property.

The UserPassword property is only used when the Protected property is set to true.

Important: UserPassword and OwnerPassword will internally be converted to an ASCII string due to the specifications of the PDF format.

Note that UserPassword is not supported when DocumentType is PdfDocumentType.PdfA.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Forms.DocumentWriters requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features