vcl-dxpdfdocument-dot-tdxpdfsecurityoptions-4b9542ac.md
Specifies the active document encryption algorithm.
property Algorithm: TdxPDFEncryptionAlgorithmType read; write;
| Type | Description |
|---|---|
| TdxPDFEncryptionAlgorithmType |
Enumerates types of algorithms used to encrypt PDF documents.
|
Use this property to switch between available document encryption algorithms. Refer to the TdxPDFEncryptionAlgorithmType type description for detailed information on available algorithms.
Important
The current implementation of the PDF document‘s SaveToFile and SaveToStream procedures cannot use the AES encryption algorithm to protect saved documents and raises the EdxPDFEncryptionException exception if the Algorithm property is set to eatAES and the Enabled property is set to True. The LoadFromFile and LoadFromStream procedures can load documents encrypted with the AES algorithm.
The Algorithm property’s default value is eatRC128Bit.
See Also