Table of Contents

Class Passwords

Namespace
PDFjet.NET
Assembly
PDFjet.dll

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

string

GetUserPassword()

Returns the user password.

public string GetUserPassword()

Returns

string

SetOwnerPassword(string)

Sets the owner password, which opens the document with full access.

public Passwords SetOwnerPassword(string ownerPassword)

Parameters

ownerPassword string

Returns

Passwords

SetUserPassword(string)

Sets the user password, which is required to open the document.

public Passwords SetUserPassword(string userPassword)

Parameters

userPassword string

Returns

Passwords