[]
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
Initialize a new instance of the StandardSecurityHandlerRev3 class.
public StandardSecurityHandlerRev3()
Gets or sets a value indicating whether a document's content can be copied or extracted.
public bool CopyContent { get; set; }
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; }
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; }
Gets or sets a value controlling how a document can be edited.
public EditingPermissions EditingPermissions { get; set; }
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; }
Gets or sets a value controlling how a document can be printed.
public PrintingPermissions PrintingPermissions { get; set; }