THotPDF.SignPDFWithSystemCertificate Method
Souhrn metody: THotPDF.SignPDFWithSystemCertificate Method
Deklarace
class function SignPDFWithSystemCertificate(const InputPDFPath, OutputPDFPath: string; const Selector: THPDFCertificateStoreSelector; const Options: THPDFCMSSignOptions): boolean; overload; static;
class function SignPDFWithSystemCertificate(InputStream, OutputStream: TStream; const Selector: THPDFCertificateStoreSelector; const Options: THPDFCMSSignOptions): boolean; overload; static;
Jednotka
HPDFDoc
Parametry
| Název | Účel |
|---|---|
InputPDFPath | Source PDF file path |
OutputPDFPath | Destination path for the signed PDF |
Selector | Certificate-store selector used to choose the signing certificate |
Options | CMS signing options controlling the digest, signature metadata, timestamp, and related policy |
InputStream | Source stream positioned at the beginning of the PDF |
OutputStream | Destination stream that receives the signed PDF |
Návratová hodnota
Returns True when the certificate is found and the signed PDF is written successfully
Poznámky k použití
- The input and output file paths or streams must be different
- The Windows certificate private key must be accessible to the current process
- This helper requires Delphi 2009 or later
Options.DigestAlgorithm - Podpisy CNG ECDSA se konvertují z formátu surových souřadnic Windows do podoby DER vyžadované CMS
- Verze Windows a key-storage provider musí implementovat zvolený algoritmus SHA-3
- Legacy klíče CryptoAPI podporují RSA PKCS#1 v1.5 se SHA-256, SHA-384 nebo SHA-512 a explicitně odmítají SHA-3, RSA-PSS a ECDSA
Související API
- THotPDF
- THPDFPage
- Obsah