Make a signature on the pdf document.
Parameters
- page
- The page on which signature is made.
- SigReason
- The reason of signature.
- SigContact
- The contact of signature.
- SigLocation
- The location of signature.
- visible
- The visiblity of signature.
- annotRect
- The rect of signature.
Example
[C#]
string inFile=TestPath + "example1.pdf";
string outFile=TestPath + "signature.pdf";
Certificate cert=new Certificate(TestPath+"allen.pfx","psw");
PdfFileSignature pdfSign=new PdfFileSignature(cert);
pdfSign.BindPdf(inFile);
System.Drawing.Rectangle rect=new System.Drawing.Rectangle(100,100, 200, 100);
pdfSign.SignModel = PdfFileSignature.WINDOWCERTIFICATE;
pdfSign.SignatureAppearance = TestPath + "butterfly.jpg";
pdfSign.CertificationLevel = PdfFileSignature.NOT_CERTIFIED;
pdfSign.Sign(2,"Allen","success","ChangSha",true,rect);
pdfSign.Save(outFile);
[Visual Basic]
Dim cert as Certificate=new Certificate(TestPath+"allen.pfx","psw")
Dim pdfSign=new PdfFileSignature(cert)
pdfSign.BindPdf(inFile)
Dim rect as System.Drawing.Rectangle =new System.Drawing.Rectangle(100,100, 200, 100)
pdfSign.Sign(2,"Allen","success","ChangSha",true,rect)
pdfSign.SignModel = PdfFileSignature.WINDOWCERTIFICATE
pdfSign.SignatureAppearance = TestPath + "butterfly.jpg"
pdfSign.CertificationLevel = PdfFileSignature.NOT_CERTIFIED
pdfSign.Save(outFile)
See Also
PdfFileSignature Class | Aspose.Pdf.Kit Namespace