[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Security.StandardSecurityHandlerRev3

Class StandardSecurityHandlerRev3

Namespace
GrapeCity.Documents.Pdf.Security
Assembly
GcDocs.Pdf.dll

Represents a Standard Security Handler Revision 3.

This handler uses RC4 encryption with key from 40 to 128 bit length and allows to define additional permission flags.

public class StandardSecurityHandlerRev3 : StandardSecurityHandler, IPdfDict, IDisposable
Inheritance
object
StandardSecurityHandlerRev3
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Extension Methods

Constructors

StandardSecurityHandlerRev3()

Initialize a new instance of the StandardSecurityHandlerRev3 class.

public StandardSecurityHandlerRev3()

Properties

CopyContent

Gets or sets a value indicating whether a document's content can be copied or extracted.

public bool CopyContent { get; set; }

Property Value

bool

CopyContentAccessibility

Gets or sets a value used to determine whether content could be extracted for the purposes of accessibility.

Note however that this restriction has been deprecated in PDF 2.0, which states that PDF readers shall ignore this bit. The default value of this property is true, and it should not be changed.

public bool CopyContentAccessibility { get; set; }

Property Value

bool

CopyContentPermissions

Gets or sets a value controlling how a document's content can be copied or extracted.

[Obsolete("Use CopyContent and CopyContentAccessibility")]
public CopyContentPermissions CopyContentPermissions { get; set; }

Property Value

CopyContentPermissions

EditingPermissions

Gets or sets a value controlling how a document can be edited.

public EditingPermissions EditingPermissions { get; set; }

Property Value

EditingPermissions

EncryptionKeyLength

Gets or sets the length of the encryption key, in bits. The value must be a multiple of 8, in the range from 40 to 128.

IMPORTANT NOTE: StandardSecurityHandlerRev4 can use RC4 or AES encryption, and according to specification, with RC4 any key length in the range from 40 to 128 can be used. But tests show that current/recent versions of Adobe Acrobat Reader DC and Adobe Acrobat Pro DC cannot handle files encrypted with RC4 if the key length is not equal to 128. Older versions of Acrobat Reader handle such files without issues, so it looks like a bug in the newer versions of Acrobat Reader. So it is recommended that StandardSecurityHandlerRev3 is used in cases when RC4 encryption with key length other than 128 is required.

public int EncryptionKeyLength { get; set; }

Property Value

int

PrintingPermissions

Gets or sets a value controlling how a document can be printed.

public PrintingPermissions PrintingPermissions { get; set; }

Property Value

PrintingPermissions