THotPDF.OwnerPassword Property

 

THotPDF.OwnerPassword

THotPDF

 

Горе  Предишна  Следваща

Determines document owner password.

 

Delphi syntax:

property OwnerPassword: AnsiString;

 

C++ syntax:

__property AnsiString OwnerPassword;

 

Описание

Отварянето на документа с правилната owner парола (ако тя не съвпада с user паролата) позволява пълен (owner) достъп до документа. Този неограничен достъп включва възможността да се променят паролите на документа и разрешенията за достъп

 

Примерен код

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, CryptKeyLength, ProtectOptions, UserPassword