THotPDF.CryptKeyLength Property
HotPDF Delphi PDF Component Developer Guide loslab Logo

 

THotPDF.CryptKeyLength

THotPDF

 

Top  Previous  Next

Determines PDF file encryption method.

 

type

THPDFKeyType = ( k40,  k128 );

 

Delphi syntax:

property CryptKeyLength: THPDFKeyType;

 

C++ syntax:

__property THPDFKeyType CryptKeyLength;

 

Description

Use CryptKeyLength to determine encoding algorithm.

 

Value                Meaning


k40                        40 bit encoding.

k128                        128 bit encoding.

 

Code Example

HPDF.OwnerPassword := 'password';          // Set owner password (required to change security settings)
HPDF.UserPassword := 'user';               // Set user password (required to open the document)
HPDF.ProtectOptions := [poEdit, poAnnot];  // Disallow editing and annotations
HPDF.ActivateProtection := true;           // Enable PDF security

 

See also: ActivateProtection, OwnerPassword, ProtectOptions, UserPassword

 

Copyright©2007-2025 losLab.com