THotPDF.SignPDFWithSystemCertificate Method

Enterprise 版:此功能隨 HotPDF Enterprise 出貨。在 uses 子句加入 HPDFEnterprise(C++Builder:#pragma link "HPDFEnterprise");其他版本保留宣告並丟出 EHPDFEnterpriseRequired

方法摘要: THotPDF.SignPDFWithSystemCertificate Method

宣告

class function SignPDFWithSystemCertificate(const InputPDFPath,
  OutputPDFPath: string; const Selector: THPDFCertificateStoreSelector;
  const Options: THPDFCMSSignOptions): boolean; overload; static;
class function SignPDFWithSystemCertificate(const InputPDFPath,
  OutputPDFPath: string; const Selector: THPDFCertificateStoreSelector;
  const Options: THPDFCMSSignOptions;
  CancellationToken: THPDFCancellationToken): boolean; overload; static;
class function SignPDFWithSystemCertificate(InputStream, OutputStream: TStream;
  const Selector: THPDFCertificateStoreSelector;
  const Options: THPDFCMSSignOptions): boolean; overload; static;
class function SignPDFWithSystemCertificate(InputStream, OutputStream: TStream;
  const Selector: THPDFCertificateStoreSelector;
  const Options: THPDFCMSSignOptions;
  CancellationToken: THPDFCancellationToken): boolean; overload; static;

單元

HPDFDoc

參數

名稱用途
InputPDFPath來源 PDF 檔案路徑
OutputPDFPath簽署後 PDF 的目的路徑
Selector用來選擇簽署憑證的憑證儲存區選擇器
OptionsCMS 簽署選項,控制摘要、簽章中繼資料、時間戳記與相關政策
InputStream定位在 PDF 開頭的來源串流
OutputStream接收簽署 PDF 的目的串流
CancellationToken選用的合作式取消權杖,接受它的檔案與串流多載都會遵守

傳回值

找到憑證且簽署 PDF 寫入成功時傳回 True

使用說明

相關 API