THotPDF.ProtectOptions Property

 

THotPDF.ProtectOptions

THotPDF

 

Üst  Önceki  Sonraki

Determines PDF file protection options.

 

type

THPDFProtection = (prPrint, prModifyStructure, prInformationCopy, prEditAnnotations, prPrint12bit, prFillAnnotations, prExtractContent, prAssemble);

 

Delphi sözdizimi:

property ProtectOptions: THPDFProtection;

 

C++ sözdizimi:

__property THPDFProtectOptions ProtectOptions;

 

Açıklama

Belge kullanıcı erişimiyle açıldığında izin verilen koruma seçeneklerini belirlemek için ProtectOptions kullanın

 

Value                Meaning


prPrint                Belgeyi yazdırmaya izin verir (izin biti 3). prPrint12bit yoksa görüntüleyiciler yazdırmayı düşük kaliteli bir temsille sınırlayabilir.

prModifyStructure        Belgenin içeriğini değiştirmeye izin verir

prInformationCopy        Allow copy information about the document.

prEditAnnotations        Allow edit the annotation text.

prPrint12bit                Tam kalitede yazdırmaya izin verir (izin biti 12). Yalnızca prPrint ile birlikte etkili olur; prPrint olmadan belge hiç yazdırılamaz.

prFillAnnotations        Allow add or modify text annotations.

prExtractContent        Belgeden metin ve grafikleri kopyalamaya veya başka biçimde çıkarmaya izin verir

prAssemble                Belgeyi birleştirmeye izin verir (sayfa ekleme, döndürme veya silme; bookmark ve küçük resim oluşturma)

 

Kod Örneği

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

 

Ayrıca bkz.: ActivateProtection, CryptKeyLength, OwnerPassword, UserPassword