THotPDF.SignPDFWithSystemCertificate Method

方法摘要: THotPDF.SignPDFWithSystemCertificate Method

声明

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;

单元

HPDFDoc

参数

名称用途
InputPDFPathSource PDF file path
OutputPDFPath已签名 PDF 的目标路径
Selector用于选择签名证书的证书存储选择器
OptionsCMS 签名选项,控制摘要、签名元数据、时间戳及相关策略
InputStream定位在 PDF 起始位置的源流
OutputStream接收已签名 PDF 的目标流

返回值

找到证书且已签名 PDF 写入成功时返回 True

使用说明

相关 API