Hi,
Thanks for your patience.
Due to personnel changes within our organization, we inadvertently failed to notify you of the partial implementation of the new features.
We are pleased to inform you that the feature that you suggested have been implemented and are now available for use.
- Code: Select all
PdfDocument doc = new PdfDocument();
doc.LoadFromFile(@"test.pdf");
X509Certificate2 cert = new X509Certificate2(@"gary.pfx", "e-iceblue");
//create CustomPKCS7SignatureFormatter
CustomPKCS7SignatureFormatter customPKCS7SignatureFormatter = new CustomPKCS7SignatureFormatter(cert);
PdfSignature signature = new PdfSignature(doc, doc.Pages[0], customPKCS7SignatureFormatter, "signature0");
signature.Bounds = new RectangleF(new PointF(90, 550), new SizeF(270, 90));
signature.GraphicsMode = GraphicMode.SignDetail;
signature.NameLabel = "Signer:";
signature.Name = "Test";
signature.Reason = "The certificate of this document";
signature.DistinguishedNameLabel = "DN: ";
signature.DocumentPermissions = PdfCertificationFlags.AllowFormFill | PdfCertificationFlags.ForbidChanges;
signature.SignDetailsFont = new PdfFont(PdfFontFamily.TimesRoman, 10f);
signature.SignNameFont = new PdfFont(PdfFontFamily.Courier, 15);
signature.SignImageLayout = SignImageLayout.None;
//Save pdf file.
doc.SaveToFile(@"output.pdf", Spire.Pdf.FileFormat.PDF);
We apologize for any inconvenience this may have caused and appreciate your patience and understanding throughout this process.
Thank you for your valuable feedback and support, and please do not hesitate to contact us if you have any further concerns or questions.
Best regards,
Triste
E-iceblue support team