Pdf | |
| Member name | Value | Description |
|---|---|---|
| EncryptKey40Bit | 1 | 40-bit encryption key. |
| EncryptKey128Bit | 2 | 128-bit encryption key. |
| EncryptKey256Bit | 3 | 256-bit encryption key (AES revision 5). |
| EncryptKey256BitRevision6 | 4 | 256-bit encryption key using AES revision 6. Requires the AES algorithm. |
PdfDocument doc = new PdfDocument(); doc.Security.KeySize = PdfEncryptionKeySize.EncryptKey256Bit; doc.Security.Algorithm = PdfEncryptionAlgorithm.AES; doc.Security.UserPassword = "open-me";
Dim doc As New PdfDocument() doc.Security.KeySize = PdfEncryptionKeySize.EncryptKey256Bit doc.Security.Algorithm = PdfEncryptionAlgorithm.AES doc.Security.UserPassword = "open-me"