THotPDF.SignPDFWithPFXAndAttachedPDFMAC Method

Creates one encrypted signed revision whose PDF MAC authenticates both the complete signature byte ranges and the raw CMS signature value

Declaration

class function SignPDFWithPFXAndAttachedPDFMAC(
  const InputPDFPath, OutputPDFPath, PFXFilePath: string;
  const PFXPassword, PDFPassword: AnsiString;
  const MACOptions: THPDFPDFMACOptions): boolean; static;

Input requirements

Output guarantees

Use ValidatePDFMAC to verify the active trailer, SigObjRef, signature field binding, complete byte-range coverage, document digest, signature digest, and MAC authentication