public static void CheckPDF() { List <SignatureInfo> infos = PdfSigner.DetectSignature("signed.pdf"); foreach (SignatureInfo info in infos) { Console.WriteLine(info.Contact); Console.WriteLine(info.DigitalSigner); Console.WriteLine(info.FieldName); Console.WriteLine(info.Location); Console.WriteLine(info.PageId); Console.WriteLine(info.Reason); Console.WriteLine(info.Rect.X + "-" + info.Rect.Y + "-" + info.Rect.Width + "-" + info.Rect.Height); Console.WriteLine(info.SignDate); } Console.ReadLine(); }
public static void CheckPDF() { //Please repace the trial key from trial-license.txt in download package //This license registration line need to be at very beginning of our other code LicenseManager.SetKey("trial key"); List <SignatureInfo> infos = PdfSigner.DetectSignature("sample.pdf"); foreach (SignatureInfo info in infos) { Console.WriteLine(info.Contact); Console.WriteLine(info.DigitalSigner); Console.WriteLine(info.FieldName); Console.WriteLine(info.Location); Console.WriteLine(info.PageId); Console.WriteLine(info.Reason); Console.WriteLine(info.Rect.X + "-" + info.Rect.Y + "-" + info.Rect.Width + "-" + info.Rect.Height); Console.WriteLine(info.SignDate); } Console.ReadLine(); }