TPDFlibPublicKeyEncrypt
Data types, security and signatures
Description
Configures public-key encryption for EncryptPublicKey.
TPDFlib declares the public methods and a protected dispatch method for public-key encryption of the selected document. The edition class supplies the implementation as a callback of this type. A plain TPDFlib instance supplies none, so the call returns the documented empty result and sets LastErrorCode to PDFLIB_ERROR_ENTERPRISE_REQUIRED. Application code never declares, assigns or calls a value of this type.
Syntax
Delphi
TPDFlibPublicKeyEncrypt = Function(Strength: Integer): Integer Of Object;Parameters
| Strength | 2 for AES-128 with AESV2, 3 for AES-256 with AESV3 |
|---|
Return values
| 1 | Public-key encryption was configured |
|---|---|
| 0 | No recipient is configured, the strength is unsupported, or the document state is incompatible |