The OwnerPassword Property is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
Gets or sets the owner password value to be used in the resulting PDF document.Visual Basic (Declaration) | |
---|---|
Public Property OwnerPassword As String |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As PdfDocumentOptions Dim value As String instance.OwnerPassword = value value = instance.OwnerPassword |
C# | |
---|---|
public string OwnerPassword {get; set;} |
Property Value
A System.String that contains the user password value to be used. To reset the owner password, use either an empty string or a null reference (Nothing in Visual Basic)For an example, refer to PdfDocumentOptions.
The owner password is used by PDF viewers to grant or deny editing the PDF document. For more information, refer to the Protected property.
The OwnerPassword property is only used when the Protected property is set to true.
Note that OwnerPassword is not supported when PdfDocumentOptions.DocumentType is PdfDocumentType.PdfA.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7