|
THotPDF.EnablePubKeyEncryption
|
Методи Наступна CryptKeyLength |
|
Switches document encryption to the PDF public-key security handler.
Delphi syntax: procedure EnablePubKeyEncryption(const Seed: AnsiString; KeyType: THPDFKeyType = aes128; EncryptMetadata: Boolean = true);
C++ syntax: void __fastcall EnablePubKeyEncryption(System::AnsiString Seed, THPDFKeyType KeyType, bool EncryptMetadata);
Опис EnablePubKeyEncryption emit /Encrypt dictionary using /Filter /Adobe.PubSec HotPDF handles symmetric file encryption і PDF algorithm 9 key derivation, while caller supplies random seed and one externally built PKCS#7 envelopedData blob per recipient
Після цього method викликайте AddPubKeyRecipient для кожного recipient Set ActivateProtection to true before writing document Supported KeyType values: k40, k128 і aes128; AES-256 public-key encryption не implemented
See also: AddPubKeyRecipient, CryptKeyLength, ActivateProtection, PDF Filter Support |