Click or drag to resize
Pdf Library for .NET

PdfDocumentSecurityKeySize Property

Gets or sets the length of the encryption key. Defaults to EncryptKey256BitRevision6 (AES-256) for a new document and for a loaded document that is not encrypted; an encrypted document keeps its own. Setting a value that is incompatible with the current Algorithm silently adjusts the algorithm to a supported one (40-bit → RC4; 256-bit + RC4 → AES; 256-bit revision 6 → AES). Valid combinations: 40/128-bit + RC4, 128/256-bit + AES, 256-bit revision 6 + AES (PDF 2.0), 256-bit + AES-GCM (PDF 2.0).

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public PdfEncryptionKeySize KeySize { get; set; }

Property Value

PdfEncryptionKeySize
See Also