THotPDF.OwnerPassword Property

 

THotPDF.OwnerPassword

THotPDF

 

Viršus  Ankstesnis  Kitas

Determines document owner password.

 

Delphi syntax:

property OwnerPassword: AnsiString;

 

C++ syntax:

__property AnsiString OwnerPassword;

 

Aprašas

Atidarius dokumentą su teisingu savininko slaptažodžiu, kuris nesutampa su vartotojo slaptažodžiu, gaunama visa (savininko) prieiga prie dokumento. Ši neapribota prieiga leidžia keisti dokumento slaptažodžius ir prieigos teises

 

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