Table of Contents

Class Security

Namespace
EvoPdf
Assembly
evohtmltopdf.dll

This class encapsulates the options to control the PDF document security options. The Document class defines a reference to an object of this type in Security property.

[ClassInterface(ClassInterfaceType.AutoDual)]
public class Security
Inheritance
Security
Inherited Members

Properties

CanAssembleDocument

Can assemble the PDF document (create bookmarks, thumbnail images or insert, rotate, delete pages). This property has effect when a 128 bit key is used.

public bool CanAssembleDocument { get; set; }

Property Value

bool

CanCopyAccessibilityContent

Can copy the PDF document accessibility content.

public bool CanCopyAccessibilityContent { get; set; }

Property Value

bool

CanCopyContent

Can copy the PDF document content.

public bool CanCopyContent { get; set; }

Property Value

bool

CanEditAnnotations

Can edit PDF document annotations. When this property is set to false the annotations cannot be changed in a PDF editor

public bool CanEditAnnotations { get; set; }

Property Value

bool

CanEditContent

Can edit PDF document content. When this property is set false the PDF document content cannot be changed in a PDF editor

public bool CanEditContent { get; set; }

Property Value

bool

CanFillFormFields

Can fill the PDF form fields. This property has effect when a 128 bit key is used. To disable form filling the CanEditContent and CanEditAnnotations must be set on false.

public bool CanFillFormFields { get; set; }

Property Value

bool

CanPrint

Can print the PDF document. When this property is set to false the printing of the PDF document is disabled in a PDF viewer.

public bool CanPrint { get; set; }

Property Value

bool

CanPrintHighResolution

Can print the PDF document in high resolution. When this property is set to true the PDF document printed in high resolution.

public bool CanPrintHighResolution { get; set; }

Property Value

bool

EncryptionAlgorithm

The encryption algorithm used to encrypt the PDF document. The default algorithm is RC4.

public EncryptionAlgorithm EncryptionAlgorithm { get; set; }

Property Value

EncryptionAlgorithm

KeySize

The dimension of the PDF doucument encryption key. The default key size is 128 bits for a newly created PDF document.

public EncryptionKeySize KeySize { get; set; }

Property Value

EncryptionKeySize

OwnerPassword

The password required to change permissions of the PDF document like printing or editing. If the OwnerPassword property is an empty string and the UserPassword is not empty, the OwnerPassword will be automatically assigned with the value from UserPassword and when the PDF document is opened in the viewer using the user password (which is also the owner password all the operations like printing, copying, etc will be allowed.

public string OwnerPassword { get; set; }

Property Value

string

UserPassword

The password required to open the PDF document. If the OwnerPassword property is an empty string and the UserPassword is not empty, the OwnerPassword will be automatically assigned with the value from UserPassword and when the PDF document is opened in the viewer using the user password (which is also the owner password) all the operations like printing, copying, etc will be allowed.

public string UserPassword { get; set; }

Property Value

string