THotPDF.ActivateProtection-Eigenschaft

 

THotPDF.ActivateProtection

THotPDF

 

Oben  Zurück  Weiter
Platzhalter für Themeninhalt

Bestimmt, ob das PDF-Dokument verschlüsselt ist

 

Delphi-Syntax:

property ActivateProtection: Boolean;

 

C++-Syntax:

__property bool ActivateProtection;

 

Beschreibung

Ein PDF-Dokument kann verschlüsselt werden, um seine Inhalte vor unbefugtem Zugriff zu schützen Set ActivateProtection auf true, um die PDF-Verschlüsselung zu aktivieren, oder setzen Sie ActivateProtection auf false, um die PDF-Verschlüsselung zu deaktivieren

Default value: false

 

Codebeispiel

HPDF.OwnerPassword := 'password';          // Set owner password (required to change security settings)
HPDF.UserPassword := 'user';               // Set user password (required to open the document)
HPDF.ProtectOptions := [prPrint, prInformationCopy]; // Allow printing and copying only
HPDF.ActivateProtection := true;           // Enable PDF security

 

See also: CryptKeyLength, OwnerPassword, ProtectOptions, UserPassword