[]
        
(Showing Draft Content)

FarPoint.PDF.PdfSecurity.-ctor

PdfSecurity Constructor

PdfSecurity(string, string, PdfPermissions)

Initializes an instance of the PdfSecurity class with the specified passwords and permissions.

Declaration
public PdfSecurity(string ownerPassword, string userPassword, PdfPermissions permissions)
Public Sub New(ownerPassword As String, userPassword As String, permissions As PdfPermissions)
Parameters
Type Name Description
string ownerPassword

The password, that upon being entered, permits the viewer unrestricted access to the document.

string userPassword

The password, that upon being entered, permits the viewer the permissions as specified in this class's Permissions property.

PdfPermissions permissions

The initial Permissions value for this object.

PdfSecurity(string, string)

Initializes an instance of the PdfSecurity class with the specified passwords and default permissions. By default all permissions are allowed.

Declaration
public PdfSecurity(string ownerPassword, string userPassword)
Public Sub New(ownerPassword As String, userPassword As String)
Parameters
Type Name Description
string ownerPassword

The password, that upon being entered, permits the viewer unrestricted access to the document.

string userPassword

The password, that upon being entered, permits the viewer the permissions as specified in this class's Permissions property.

PdfSecurity(string)

Initializes an instance of the PdfSecurity class with the specified passwords and default permissions. By default all permissions are allowed.

Declaration
public PdfSecurity(string ownerPassword)
Public Sub New(ownerPassword As String)
Parameters
Type Name Description
string ownerPassword

The password that permits the viewer unrestricted access to the document.