'Adding Digital Signature to a word document using Open XML Format in C#

I've created a test word document using openxml. My next step is to add a digital signature at the end of the word document after a button click. Could someone if possible share a code for creating and adding a digital signature to a word file or could just refer to articles that could help me with the same. I've read questions on stackoverflow and read a few articles too but they use Microsoft.interop.office which doesn't work with my word document created by openxml. Please help if possible. Thank you in advance



Solution 1:[1]

In my searches I keep landing on your question, which suggests some awesome SEO.

Anyway, you have probably already arrived at your answer, but I have stumbled across this promising sample:

https://github.com/coatsy/SignWordDoc/blob/master/SignWordDoc/SignWordDoc/Program.cs

I'd say good job coatsy, although I've yet to try it :D Hopefully I remember to let you know how it works out.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1