THotPDF.SignPDFWithSystemCertificate Method

Enterprise edition: 이 기능은 HotPDF Enterprise에 포함되어 제공됩니다. uses 절에 HPDFEnterprise를 추가하고(C++Builder는 #pragma link "HPDFEnterprise"), 다른 edition은 선언을 유지한 채 EHPDFEnterpriseRequired를 발생시킵니다

Windows 인증서 저장소에서 고른 인증서로 PDF 파일이나 스트림에 서명하고, 서명 결과를 별도 대상에 기록합니다

선언

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다이제스트, 서명 메타데이터, timestamp, 관련 정책을 제어하는 CMS 서명 옵션
InputStreamPDF 시작 위치에 놓인 원본 스트림
OutputStream서명된 PDF를 받는 대상 스트림
CancellationToken이를 받는 파일·스트림 오버로드가 준수하는 선택적 협력 취소 토큰

반환 값

인증서를 찾았고 서명된 PDF가 성공적으로 기록되면 True를 반환합니다

사용 참고 사항

관련 API