cete.dynamicpdf.security
Security
- Namespace: ceTe.DynamicPDF
- Assemblies: DynamicPDF.CoreSuite.dll
Base class from which all security classes are derived.
public abstract class Security
Public MustInherit Class Security
Inheritance: Object → Security
Derived: Aes128Security, Aes256Security, RC4128Security, RC440Security
Remarks
Security's derived classes are: RC4128Security and RC440Security .
Properties
AllowCopy
Gets or sets if text and images can be copied to the clipboard by the user.
public bool AllowCopy { get; set; }
Public Property AllowCopy As Boolean
Property Value
AllowEdit
Gets or sets if the document can be edited by the user.
public bool AllowEdit { get; set; }
Public Property AllowEdit As Boolean
Property Value
AllowPrint
Gets or sets if the document can be printed by the user.
public bool AllowPrint { get; set; }
Public Property AllowPrint As Boolean
Property Value
AllowUpdateAnnotsAndFields
Gets or sets if annotations and form fields can be added, edited and modified by the user.
public bool AllowUpdateAnnotsAndFields { get; set; }
Public Property AllowUpdateAnnotsAndFields As Boolean
Property Value
OwnerPassword
Gets or sets the owner password.
public string OwnerPassword { get; set; }
Public Property OwnerPassword As String
Property Value
UserPassword
Gets or sets the user password.
public string UserPassword { get; set; }
Public Property UserPassword As String
Property Value
Methods
Draw(DocumentWriter, Encrypter)
Draws the encrypter dictionary to the given DocumentWriter object.
public abstract void Draw(DocumentWriter writer, Encrypter encrypter)
MustOverride Sub Draw(writer As DocumentWriter, encrypter As Encrypter)
Parameters
- writer: DocumentWriter
DocumentWriter object to receive the output.
- encrypter: Encrypter
Encrypter object used to encrypt the document.
Equals(Object)
Determines whether the specified Object is equal to the current Object . (Inherited from Object)
public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean
Parameters
- obj: Object
The Object to compare with the current Object .
Returns
true if the specified Object is equal to the current Object ; otherwise, false.
GetEncrypter(Byte[])
Gets an Encrypter object to be used for encrypting the document.
public abstract Encrypter GetEncrypter(Byte[] id)
MustOverride Function GetEncrypter(id As Byte()) As Encrypter
Parameters
- id: Byte[]
ID of the current PDF document.
Returns
An Encrypter .
GetHashCode()
Serves as a hash function for a particular type. (Inherited from Object)
public int GetHashCode()
Function GetHashCode() As Integer
Returns
A hash code for the current Object .
GetType()
Gets the Type of the current instance. (Inherited from Object)
public Type GetType()
Function GetType() As Type
Returns
The Type instance that represents the exact runtime type of the current instance.
ToString()
Returns a String that represents the current Object . (Inherited from Object)
public string ToString()
Function ToString() As String
Returns
A String that represents the current Object .