THotPDF.OwnerPassword Property

 

THotPDF.OwnerPassword

THotPDF

 

Вгору  Попередня  Наступна

Determines document owner password.

 

Delphi syntax:

property OwnerPassword: AnsiString;

 

C++ syntax:

__property AnsiString OwnerPassword;

 

Опис

Відкриття документа з правильним owner password (якщо він не збігається з user password) надає повний owner-доступ до документа. Цей необмежений доступ включає можливість змінювати паролі документа і права доступу

 

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