THotPDF.ActivateProtection-ominaisuus

THotPDF.ActivateProtection

THotPDF

Ylös Edellinen Seuraava

Määrittää, onko PDF-asiakirja suojattu salauksella

Delphi syntax:

property ActivateProtection: Boolean;

C++ syntax:

__property bool ActivateProtection;

Kuvaus

PDF-dokumentti voidaan salata sen sisällön suojaamiseksi luvattomalta käytöltä. Aseta ActivateProtection arvoon true salliaksesi PDF-salauksen tai aseta ActivateProtection arvoon false poistaaksesi PDF-salauksen käytöstä

Default value: false

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

Katso myös: CryptKeyLength, OwnerPassword, ProtectOptions, UserPassword