Class Passwords
The user and owner passwords of an encrypted PDF. A password is used as typed, in UTF-8, and at most 127 bytes of it are used. Chrome does not cut a longer password to its first 127 bytes, as other viewers do, and opens the PDF only when just those are typed, so a password of 127 bytes or fewer is the one to give. Please see Example_47.
public class Passwords
- Inheritance
-
Passwords
- Inherited Members
Constructors
Passwords()
Creates an empty set of passwords.
public Passwords()
Methods
GetOwnerPassword()
Returns the owner password.
public string GetOwnerPassword()
Returns
GetUserPassword()
Returns the user password.
public string GetUserPassword()
Returns
SetOwnerPassword(string)
Sets the owner password, which opens the document with full access.
public Passwords SetOwnerPassword(string ownerPassword)
Parameters
ownerPasswordstring
Returns
SetUserPassword(string)
Sets the user password, which is required to open the document.
public Passwords SetUserPassword(string userPassword)
Parameters
userPasswordstring