[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Security.StandardSecurityHandlerRev3

StandardSecurityHandlerRev3 Class

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.

Implements
Namespace: GrapeCity.Documents.Pdf.Security
Assembly: DS.Documents.Pdf.dll
Syntax
public class StandardSecurityHandlerRev3 : StandardSecurityHandler, IPdfDict, IDisposable
Public Class StandardSecurityHandlerRev3
    Inherits StandardSecurityHandler
    Implements IPdfDict, IDisposable

Constructors

Name Description
StandardSecurityHandlerRev3()

Initialize a new instance of the StandardSecurityHandlerRev3 class.

Properties

Name Description
CopyContent

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

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.

CopyContentPermissions

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

EditingPermissions

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

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.

PrintingPermissions

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

Extension Methods