HotPDF Developer Reference
Delphi and C++Builder PDF component help
|
THotPDF.AddPubKeyRecipient
|
Previous Methods CryptKeyLength |
|
Adds one PKCS#7 recipient envelope to a public-key encrypted PDF.
Delphi syntax: procedure AddPubKeyRecipient(const EnvelopeDER: AnsiString);
C++ syntax: void __fastcall AddPubKeyRecipient(System::AnsiString EnvelopeDER);
Description Call AddPubKeyRecipient once for each recipient after EnablePubKeyEncryption. The envelope must be a non-empty PKCS#7 envelopedData DER blob created by the caller with Windows CryptoAPI, OpenSSL, or another certificate toolkit.
The order of recipients is preserved in the PDF /Recipients array and participates in the PDF algorithm 9 file-key derivation.
See also: EnablePubKeyEncryption, CryptKeyLength, PDF Filter Support |