

Signature1.GraphicsMode = GraphicMode.SignImageAndSignDetail Signature1.SignImageSource = the dispay mode of graphics, if not set any, the default one will be applied PdfSignature signature1 = new PdfSignature(doc1, doc1.Pages, cert1, "signature0") Public static string Sign(String inputPath, string outputPath, RectangleF rect) String outpath2 = Sign(outpath1, "out2.pdf", new RectangleF(new PointF(90, 300), new SizeF(270, 90))) String input = outpath1 = Sign(input, "out1.pdf", new RectangleF(new PointF(90, 100), new SizeF(270, 90))) If there is any question, please feel free to contact us.Ĭode: Select all static void Main(string args) Please note that you cannot make any changes to the contents of the file except during the signing process, otherwise the signature will become invalid.
#Foxit remove pdf signature code#
Rachel.lei Posts: 1571 Joined: Tue 2:22 amīelow is the code for your reference. If there are any questions, please feel free to write back. You can contact our sales team ( to get it.
#Foxit remove pdf signature license#
We are willing to provide a temporary license (one month free) to help you remove the warning message. Signature.SignImageLayout = if you are using our commercial version, you need to apply a valid license in your application, otherwise it will add warning message to the PDF, which changes the content of the document and will cause the signature to become invalid. Signature.Bounds = new RectangleF(new PointF(90, 300), new SizeF(270, 90)) Signature = new PdfSignature(doc, doc.Pages, cert, "signature1") save the pdf and then load it and sign again Signature.SignImageLayout = SignImageLayout.None Signature.SignNameFont = new PdfFont(PdfFontFamily.Courier, 15) Signature.SignDetailsFont = new PdfFont(PdfFontFamily.TimesRoman, 10f) if not set, default ones will be applied. Signature.DocumentPermissions = PdfCertificationFlags.AllowFormFill | PdfCertificationFlags.ForbidChanges

Signature.Reason = "The certificate of this document" Signature.LocationInfoLabel = "Location:"

Signature.ContactInfoLabel = "ContactInfo:" Signature.GraphicsMode = GraphicMode.SignImageAndSignDetail Signature.SignImageSource = the dispay mode of graphics, if not set any, the default one will be applied Signature.Bounds = new RectangleF(new PointF(90, 100), new SizeF(270, 90)) PdfSignature signature = new PdfSignature(doc, doc.Pages, cert, "signature0") String pfxPath = cert = new PdfCertificate(pfxPath, "e-iceblue") Kindly note that to sign a document multiple times, you need to save the pdf after a signature, and then load the pdf and sign the document again, as shown below.Ĭode: Select all String input = doc = new PdfDocument()
