Proprietatea THotPDF.OwnerPassword

 

THotPDF.OwnerPassword

THotPDF

 

Sus  Anterior  Următor

Determină parola de owner a documentului.

 

Sintaxă Delphi:

property OwnerPassword: AnsiString;

 

Sintaxă C++:

__property AnsiString OwnerPassword;

 

Descriere

Deschiderea documentului cu parola de owner corectă (presupunând că nu este aceeași cu parola de utilizator) permite accesul complet, de owner, la document. Acest acces nelimitat include posibilitatea de a schimba parolele documentului și permisiunile de acces

 

Exemplu de cod

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

 

Vezi și: ActivateProtection, CryptKeyLength, ProtectOptions, UserPassword