Back to Devexpress

TdxPDFEncryptionAlgorithmType Enum

vcl-dxpdfencryption-5cfbf1a2.md

latest2.2 KB
Original Source

TdxPDFEncryptionAlgorithmType Enum

Enumerates types of algorithms used to encrypt PDF documents.

Declaration

delphi
TdxPDFEncryptionAlgorithmType = (
    eatRC40Bit,
    eatRC128Bit,
    eatAES
);

Members

NameDescription
eatRC40Bit

The Rivest Cipher 4 (RC4) algorithm with a 40-bit key. Limits the number of functional user access flags.

| | eatRC128Bit |

The Rivest Cipher 4 (RC4) algorithm with a 128-bit key. This is a recommended option.

| | eatAES |

The Advanced Encryption Standard (AES) algorithm. Not available for document save operations.

|

Remarks

Options include:

|

Value

|

Description

| | --- | --- | |

eatRC40Bit

|

The Rivest Cipher 4 (RC4) algorithm with a 40-bit key. This encryption algorithm reduces the number of functional user access permission flags:

  • The pdpAllowPrintHighResolution flag maps to dpdAllowPrint.

  • The pdpAllowExtractContent flag maps to AllowCopyContent.

  • The pdpAllowFillFields flag maps to pdpAllowAddOrModifyTextAnnotations.

  • The pdpAllowAssembleDocument flag maps to pdpAllowEditContent.

| |

eatRC128Bit (default)

|

The Rivest Cipher 4 (RC4) algorithm with a 128-bit key. This is the recommended option for PDF document encryption.

| |

eatAES

|

The Advanced Encryption Standard (AES) algorithm. The current implementation of the PDF document container can load documents encrypted with this algorithm but cannot use AES to encrypt saved documents. A PDF document’s SaveToFile or SaveToStream procedure call raises an exception if encryption is enabled and the eatAES algorithm is selected.

|

A PDF document’s SecurityOptions.Algorithm property references the TdxPDFEncryptionAlgorithmType type.

See Also

dxPDFEncryption Unit