GroupDocsGists
10/24/2017 - 1:28 PM

Examples-CSharp-GroupDocs.Signature.Examples.CSharp-Signatures-signingworddocumentwithdigitalcertificate.cs

// For complete examples and data files, please go to https://github.com/atirtahirgroupdocs/GroupDocs.Signature-for-.NET
SignatureConfig config = Utilities.GetConfigurations();
// instantiating the signature handler
var handler = new SignatureHandler(config);
// setup digital signature options
var signOptions = new WordsSignDigitalOptions("ali.pfx");
signOptions.Password = "";
signOptions.Left = 10;
signOptions.Top = 10;
signOptions.Width = 100;
signOptions.Height = 100;
signOptions.DocumentPageNumber = 1;
string fileExtension = Path.GetExtension(fileName);
Utilities.SaveFile(fileExtension, fileName, handler, null, null, signOptions);