Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxPDFEncryptionAlgorithmType Enum

Enumerates types of algorithms used to encrypt PDF documents.

#Declaration

Delphi
TdxPDFEncryptionAlgorithmType = (
    eatRC40Bit,
    eatRC128Bit,
    eatAES
);

#Members

Name Description
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