THPDFCertificateStoreSelector Record
Selects the Windows certificate store, certificate thumbprint, and private-key prompt behavior for system-certificate PDF signing
Declaration
THPDFCertificateStoreSelector= record
Location: THPDFCertificateStoreLocation;
StoreName: UnicodeString;
Thumbprint: AnsiString;
AllowUI: Boolean;
class function Default: THPDFCertificateStoreSelector; static;
end;
Unit
HPDFWinCertSigner
Fields
| Field | Purpose |
|---|---|
Location | Store scope: cslCurrentUser (the default) or cslLocalMachine, mapped to the matching CERT_SYSTEM_STORE flags |
StoreName | System store name opened through CertOpenStore; Default uses MY |
Thumbprint | SHA-1 thumbprint of the certificate to use; required and normalized before the store lookup |
AllowUI | When False, the private key is acquired with CRYPT_ACQUIRE_SILENT_FLAG so no dialog can appear |
Default | Class function returning current user, store MY, empty thumbprint, and UI disabled |
Usage notes
- Start from
THPDFCertificateStoreSelector.Defaultand setThumbprint; signing raises an error when the thumbprint is empty - Pass the record to
HPDFSignPDFStreamWithSystemCertificateorHPDFSignPDFFileWithSystemCertificate - Keep
AllowUIFalse for service and batch scenarios where private-key prompts cannot be answered