After using codes in aspose.pdf.kit document, I still failed to digitally sign pdf file.
string inFile=TestPath + "example1.pdf";
string outFile=TestPath + "signature.pdf";
Certificate cert=new Certificate(TestPath+"nameFile.pfx","pssd");
PdfFileSignature pdfSign=new PdfFileSignature(cert);
pdfSign.BindPdf(inFile);
System.Drawing.Rectangle rect=new System.Drawing.Rectangle(100,100, 200, 100);
pdfSign.Sign(1,"nameFile","success","lala",true,rect);
pdfSign.Save(outFile);
I am not so sure what I should do?
I heard the aspose software improved the Digital signature feature, but I did not see any code sample.
Please share your thoughts, thanks!