Sign document with XAdES Digital signature
Leave feedback
Note
This feature is supported only for Spreadsheet document types
GroupDocs.Signature provides DigitalSignOptions class to specify different amount of settings for Digital signature same as property XAdES of XAdES enumeration type. This property specifies the implementation of XAdES format for Spreadsheet documents only (for now).
Here are the steps to add XAdES type signature into document with GroupDocs.Signature:
Create new instance of Signature class and pass source document path as a constructor parameter.
Instantiate the DigitalSignOptions object with required certificate and its password.
Analyze SignResult result to check newly created signatures if needed.
This example shows how to add Digital signature to document. See SignResult
using(Signaturesignature=newSignature("sample.xlsx")){DigitalSignOptionsoptions=newDigitalSignOptions("certificate.pfx"){// set XAdES typeXAdESType=XAdESType.XAdES,// certificate passwordPassword="1234567890",// digital certificate detailsReason="Sign",Contact="JohnSmith",Location="Office1"};SignResultsignResult=signature.Sign(outputFilePath,options);}
More resources
GitHub Examples
You may easily run the code above and see the feature in action in our GitHub examples:
Along with full-featured .NET library we provide simple, but powerful free Apps. You are welcome to eSign PDF, Word, Excel, PowerPoint documents with free to use online GroupDocs Signature App.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.