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署名証明書の選択に使う証明書ストアセレクター
Optionsダイジェスト、署名メタデータ、タイムスタンプ、関連ポリシーを制御する CMS 署名オプション
InputStreamPDF の先頭に位置付けられたソースストリーム
OutputStream署名済み PDF を受け取る出力ストリーム
CancellationToken省略可能な協調的キャンセルトークン。これを受け取るファイルとストリームのオーバーロードで尊重されます

戻り値

証明書が見つかり、署名済み PDF の書き込みに成功した場合に True を返します

使用上の注意

関連 API