PdfDocumentUserPassword Property |
Note: This API is now obsolete.
Sets or gets a password to use for the user password for the document.
Namespace:
Atalasoft.PdfDoc
Assembly:
Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax [ObsoleteAttribute("This property is obsolete. Use PdfSaveOptions.SetOneTimePasswords() instead to provide the passwords for saving.",
true)]
public string UserPassword { get; set; }
<ObsoleteAttribute("This property is obsolete. Use PdfSaveOptions.SetOneTimePasswords() instead to provide the passwords for saving.",
true)>
Public Property UserPassword As String
Get
Set
Property Value
Type:
StringRemarks
If a variant of Save is used that takes a userPassword parameter, that
parameter will override this property. If the userPassword parameter is
null, then this property will be used.
PDF documents have two passwords associated with them, a user password and
an owner password. If an encrypted document is opened by a conforming
reader using the owner password, then the security Permissions are ignored.
If an encrypted document is opened by a conforming reader using the user
password, then the security Permissions are enforced. When a document is
created with only one password or one unique password, it is considered the
same as having only an owner password.
See Also