[]
        
(Showing Draft Content)

FarPoint.PDF.PdfSecurity

PdfSecurity Class

Encapsulates the information necessary to provide PDF document security and encryption.

Inheritance
PdfSecurity
Namespace: FarPoint.PDF
Assembly: FarPoint.PDF.dll
Syntax
public class PdfSecurity
Public Class PdfSecurity
Remarks

If a user password is supplied the viewer application should prompt for a password. If a user password is not supplied no password will be requested to open the document. By correctly supplying either the user password or the owner password, the user will be able to open the document, decrypt it, and display it on the screen. Whether additional operations are allowed on a decrypted document depends on which password (if any) was supplied when the document was opened and on any access restrictions specified using this class's Permissions property.

Constructors

Name Description
PdfSecurity(string)

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

PdfSecurity(string, string)

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

PdfSecurity(string, string, PdfPermissions)

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

Properties

Name Description
OwnerPassword

The owner password that permits full access to the document regardless of the specified user permissions.

Permissions

Specfies the user permissions for the document. The PdfPermissions values can be combined using a bitwise OR combination.

Use128Bit

Set to True to use 128 bit encryption with full permissions capability.
Set to False to use lessor 40 bit encryption with limited permissions. The AllowFillIn, AllowAccessibleReaders, and AllowAssembly permissions require this value to be true.

UserPassword

The user password that can be entered in the reader. If this value is left empty the user will not be prompted for a password; however, the user will be restricted by the specified permissions.